-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing dependencies fails on Windows (which occurs with dev version) #1191
Comments
I feel like this is really a bug / shortcoming in R, in that you cannot install binary package on Windows once it is extracted. dest <- download.packages("zoo", tempdir(), type = "win.binary")[,2]
unzip(dest, exdir = tempdir())
install.packages(file.path(tempdir(), "zoo"), repos = NULL, type = 'source')
#> Installing package into 'C:/library'
#> (as 'lib' is unspecified)
#> Warning in install.packages :
#> running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "C:\library" "C:/pkg/temp/RtmpU7RZbU/zoo"' had status 1
#> Warning in install.packages :
#> installation of package 'C:/pkg/temp/RtmpU7RZbU/zoo' had non-zero exit status Nonetheless #1192 fixes your example and should fix the issue. |
Thanks! I feel the same as you. This is more like a bug in R... |
Fixed by #1192 |
I've confirmed. Thanks! 👍 |
Im trying to install SparkR on 64 bit windows with R3.3.2. Facing the same error while trying to install SparkR through devtools from command line as: %SPARK_HOME%\R\lib\SparkR>R -e "devtools::install ('.')" Warning: running command 'cp -R . "C:/Users/HP/Documents/R/win-library/3.3/Spark
I read the previous posts where this seems to be fixed. Which release is this available? How can I continue with my installation? |
Hi @saritha080 any luck resolving this? |
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/ |
Installing dependencies fails on my local Windows environment with dev version of
devtools
package.I've dived into the R source code. This code
is from around here.
But it says this
do_install_binary()
is for Unix only. This means something is wrong that this part of code is executed on Windows platform.The correct way of installing binary packages on Windows platform seems to be using ZIP archive without decompressing. I suspect the problem is that
install_remote()
does not follow the way; it seems to ALWAYSdecompress()
package archives, around hereCould you consider adding condition branch for Windows?
Session info:
The text was updated successfully, but these errors were encountered: