How do I fix this error?
[Error : Error in install.packages : missing value where TRUE/FALSE needed]
My current R version : 3.6.3
I am using RStudio Desktop 1.2.5033
Thanks!
How do I fix this error?
[Error : Error in install.packages : missing value where TRUE/FALSE needed]
My current R version : 3.6.3
I am using RStudio Desktop 1.2.5033
Thanks!
Can you show the command you are using and the whole message you are getting?
Please post it as formatted code instead of a screenshot, here is how to do it.
Thank you @andresrcs for responding to the issue. Please find the information you requested below -
Here is the command I used
> install.packages("XML")
And this is what the message I am getting
Installing package into ‘C:/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/XML_3.99-0.3.zip'
Content type 'application/zip' length 4258943 bytes (4.1 MB)
downloaded 4.1 MB
Error in install.packages : missing value where TRUE/FALSE needed
>
ANOTHER EXAMPLE
Here is the command I used
> install.packages("RSQLite")
And here is the message I got.
Installing package into ‘C:/R/Library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘glue’, ‘bit’, ‘rlang’, ‘vctrs’, ‘digest’, ‘bit64’, ‘blob’, ‘DBI’, ‘memoise’, ‘pkgconfig’, ‘Rcpp’, ‘BH’, ‘plogr’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ellipsis_0.3.0.zip'
Content type 'application/zip' length 44590 bytes (43 KB)
downloaded 43 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/glue_1.3.2.zip'
Content type 'application/zip' length 153948 bytes (150 KB)
downloaded 150 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/bit_1.1-15.2.zip'
Content type 'application/zip' length 252475 bytes (246 KB)
downloaded 246 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.5.zip'
Content type 'application/zip' length 1127048 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/vctrs_0.2.4.zip'
Content type 'application/zip' length 1027166 bytes (1003 KB)
downloaded 1003 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/digest_0.6.25.zip'
Content type 'application/zip' length 249508 bytes (243 KB)
downloaded 243 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/bit64_0.9-7.zip'
Content type 'application/zip' length 551485 bytes (538 KB)
downloaded 538 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/blob_1.2.1.zip'
Content type 'application/zip' length 47628 bytes (46 KB)
downloaded 46 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/DBI_1.1.0.zip'
Content type 'application/zip' length 606869 bytes (592 KB)
downloaded 592 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/memoise_1.1.0.zip'
Content type 'application/zip' length 36735 bytes (35 KB)
downloaded 35 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/pkgconfig_2.0.3.zip'
Content type 'application/zip' length 22189 bytes (21 KB)
downloaded 21 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/Rcpp_1.0.4.zip'
Content type 'application/zip' length 3027979 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/BH_1.72.0-3.zip'
Content type 'application/zip' length 18270741 bytes (17.4 MB)
downloaded 17.4 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/plogr_0.2.0.zip'
Content type 'application/zip' length 18859 bytes (18 KB)
downloaded 18 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RSQLite_2.2.0.zip'
Content type 'application/zip' length 2275191 bytes (2.2 MB)
downloaded 2.2 MB
Error in install.packages : missing value where TRUE/FALSE needed
>
similar issues had been logged by users of dplyr a few years ago
Seems to have been an issue with R version 3.4 under Rstudio.
What version are you running?
sessionInfo() can give useful info on that.
Thanks @nirgrahamuk for responding to the issue.
I have seen this post and also tried out the solutions. None of them seem to work in my case.
I am running version R version 3.6.3 under RStudio Desktop (version1.2.5033)
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3
>
and does the problem also arise when using Rgui.exe ?
I have tried to replicate your issue to see what is going on but no success, when you updated to R 3.6.3, have you copied your old library folder to the new location overwriting the new packages? or are you simply using your old library folder? Maybe you have overwritten the new base R packages, that is the only thing I can think of that could be causing this. I would recommend starting with a clean R installation including your package library.
Hey @andresrcs, it worked!
Both RStudio and R GUI are working fine showing no errors for package installation.
Thanks for the assistance
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.