Error when install package dplyr in R. Error in install.packages : missing value where TRUE/FALSE needed

Tuan Anh picture Tuan Anh · Aug 15, 2016 · Viewed 9.2k times · Source

I tried to install package dplyr but it always show the error:

Error in install.packages : missing value where TRUE/FALSE needed

Here is the console history:

> install.packages("dplyr")
also installing the dependency ‘BH’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/BH_1.60.0-2.zip'
Content type 'application/zip' length 15529281 bytes (14.8 MB)
downloaded 14.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/dplyr_0.5.0.zip'
Content type 'application/zip' length 2409178 bytes (2.3 MB)
downloaded 2.3 MB

Error in install.packages : missing value where TRUE/FALSE needed

Anyone have any ideas? Thanks in advance

Answer

sheldonzy picture sheldonzy · May 24, 2017

I had this problem in R for Windows 3.4

  1. Go to the CRAN webpage and download and install the R 3.4.0 Patched Build for Windows
  2. Run Rstudio as administrator.
  3. Install the package as usual.