Closed martin-smira closed 6 years ago
Try devtools::install(args = "--no-test-load"
)
However I think you will continue to run into problems down the line, R does not handle paths with spaces very well in many cases. I would suggest making sure you set the installation directory to either a short code of the current path (which won't have spaces), or a different path without them.
It worked. Thanks!
I run into the same problem and found many methods suggested. I spent the whole day and finally solved it with the combination of many things and a little bit luck. Here is what I did for future googlers.
After hundreds of seamless package installations via "install and restart" in R Studio, I installed a windows update the other day and now suddenly I'm getting this error. I tried all of the fixes from stewartli and the only one that worked was Jim's suggestion to add args = "--no-test-load"
. Two questions: 1) could someone kindly elaborate on the "related to whitespace on windows" explanation? 2) I know I can use Project Options > Build Tools to add "--no-test-load" to the Build and Reload options, but what does the test load accomplish when installing a package? I'm running windows 10 64 bit, R 3.5.2, RStudio v1.1.463.
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/
Hi, after installing the new R 5.1 (may not be related) I run into issues with installing packages - both via base::install.packages() and devtools::install_github(). It seems that the installation of the package goes well, but in the
** testing if installed package can be loaded
it returnsFatal error: cannot open file 'C:\Users\Martin': No such file or directory
. It's trying to access a directory including a whitespace.In base::install.packages(), I managed to get around it by passing
INSTALL_opts = "--no-test-load"
argument, which supresses the testing phase, however the same didn't work on devtools::install_github().Notes: Windows 10 64bit; R 5.1
Full output:
Thanks!