I have the following error when installing dplyr
| Trying to install package ‘dplyr’ now...
also installing the dependency ‘BH’
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/BH_1.58.0-1.zip'
Content type 'application/zip' length 13846694 bytes (13.2 MB)
downloaded 13.2 MB
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/dplyr_0.4.3.zip'
Content type 'application/zip' length 2552598 bytes (2.4 MB)
downloaded 2.4 MB
Error in install.packages : missing value where TRUE/FALSE needed
| Could not install package ‘dplyr’!
| | 0%
Error in seq.default(0, 1, length = nrow(e$les)) :
argument 'length.out' must be of length 1
Can anyone help me understand what I'm missing?
Seems to be same issue: https://github.com/swirldev/swirl/issues/260
Hi 'tentacles from outer space', thanks for your response. I was really happy to know I might have a solution to the problem above but after trying what was suggested... to install dplyr using R (and changing the mirror to another a few times), I still get the same error.
Any other ideas?
Try to run clean R session (no Rstudio, no other instances running, etc) and run following command:
install.packages("dplyr", repos = c(CRAN="https://cran.r-project.org/"))
If this failed please provide results (from the same session) from running sessionInfo()
.
Hi, I experience nearly the same issue when trying to install "maptools".
This is the history of a new R Session:
install.packages("maptools", dependencies = TRUE, repos = c(CRAN="https://cran.r-project.org/"))
Installing package into ‘\ABC/Daten/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘maps’, ‘raster’, ‘polyclip’versuche URL 'https://cran.r-project.org/bin/windows/contrib/3.2/maps_3.1.0.zip'
Content type 'application/zip' length 3610284 bytes (3.4 MB)
downloaded 3.4 MBversuche URL 'https://cran.r-project.org/bin/windows/contrib/3.2/raster_2.5-2.zip'
Content type 'application/zip' length 3075995 bytes (2.9 MB)
downloaded 2.9 MBversuche URL 'https://cran.r-project.org/bin/windows/contrib/3.2/polyclip_1.5-6.zip'
Content type 'application/zip' length 484745 bytes (473 KB)
downloaded 473 KBversuche URL 'https://cran.r-project.org/bin/windows/contrib/3.2/maptools_0.8-39.zip'
Content type 'application/zip' length 1814615 bytes (1.7 MB)
downloaded 1.7 MBFehler in if (any(diff)) { : Fehlender Wert, wo TRUE/FALSE nötig ist
sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.2.3`
In my case, the issue happened after installing 3.4.0 (win 10, 64-bit). I got a lot of similar errors, and could not find any working solutions. I ended up rolling back to 3.3.3.
Had the same problem.
The solution, suggested by @Deleetdk worked. (ty)
link: https://cran.uni-muenster.de/bin/windows/base/R-3.3.3-win.exe
Same problems as commented after installed today version 3.4.0 (win 8.1, 64-bit).
Does the new name have something to do with this (R version 3.4.0 (2017-04-21) -- "_You Stupid Darkness_")
+1 to issues updating to 3.4.0
I also rolled back. Losing all the installed libraries is not worth it.
I had no problems - fresh R install, dplyr instalation. No Rstudio involved (important?).
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=Polish_Poland.1250 LC_CTYPE=Polish_Poland.1250
[3] LC_MONETARY=Polish_Poland.1250 LC_NUMERIC=C
[5] LC_TIME=Polish_Poland.1250
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
Yes, rstudio is involved. I can install packages fine in r.exe.
Can someone please file an new issue with a minimal reprex and session_info()
. Adding comments on an old and likely unrelated issue is not a good way to get the problem fixed.
No, it is not an RStudio problem, but shows there earlier. To simplifiy, try in RGui
install.packages("abind") # ok first time asks for server. Any package will do, this is small
# Try again
install.packages("abind") # Boom "file.exists()....")
In Rstudio this gives an error on the first run, but I assume it has to do with some background action
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
>
(No problem with RStudio server on Ubuntu and 3.4)
And same problem with r.exe
The error is with file.mtime(lib) in installed.packages(): file.mtime(anydirectory) returns NA in my system.
I have the same problem after updating R to 3.4.0. Rolling back to 3.3.3. This is the only solution.
It is a bug in R 3.4.0, already reported and fixed (available for download at https://cran.r-project.org/bin/windows/base/rtest.html) see https://www.mail-archive.com/[email protected]/msg243256.html
Thank you, jan-glx.
The pachted version of R-3.4.0 works, once I copied manually the packages from the old library 3.3. On the other hand, the current version 3.4.0 (not patched) doesn't update the packages.
I ended up rolling back to 3.3.3 too
Please do not post the problems with R 3.4.0 here. This is tidyverse/dplyr, and dplyr is totally innocent!
I had the same error. I used R not RStudio to install the package. The problem was solved.
In 2018, I occurred this problem, Need I roll back to 3.3.3? Now my R version is 3.4.4.
Actually I have already installed the ggplot2, but every time when I wanted to learn the statistical course, it let me install "ggplot2" again, it's forever failed, so I can't access the courser material.
@alexunder Since it's unlikely that this is a bug in ggplot2, this sort of question is a better fit for https://community.rstudio.com. Do you mind asking it over there? (You might want to read https://www.tidyverse.org/help/ first to maximise your chances of getting a good answer, it will help you to create a reproducible example, because currently you don't give enough information for us to troubleshoot.)
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
Most helpful comment
In my case, the issue happened after installing 3.4.0 (win 10, 64-bit). I got a lot of similar errors, and could not find any working solutions. I ended up rolling back to 3.3.3.