Skip to content
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

Not able to install package #7

Open
michielvandijk opened this issue Feb 14, 2021 · 1 comment
Open

Not able to install package #7

michielvandijk opened this issue Feb 14, 2021 · 1 comment

Comments

@michielvandijk
Copy link

Hi,

As I want to download several WorldPop covariates, I was trying to install wpgpDownloadR but encounter and error. When I install the package using devtools, I get the error below, which seems to indicate a conflict with RCurl. I also would like to mention that in the Github documentation often reference is made to "wpgpCovariates", which seems to be the predecessor of the package. The installation of this package goes fine but its use requires a username and password, which I do not have. I tried using username = "ftpUsername" and password = "ftpPassword" but I assume that these are examples and one needs a real password (is still active). Any advice is much appreciated.

Installing package into 'C:/R/library/4.0.2'
(as 'lib' is unspecified)

  • installing source package 'wpgpDownloadR' ...
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** byte-compile and prepare package for lazy loading
    Error: (converted from warning) package 'RCurl' was built under R version 4.0.3
    Execution halted
    ERROR: lazy loading failed for package 'wpgpDownloadR'
  • removing 'C:/R/library/4.0.2/wpgpDownloadR'
    Error: Failed to install 'wpgpDownloadR' from GitHub:
    (converted from warning) installation of package 'C:/Users/dijk158/AppData/Local/Temp/Rtmp4UDjDc/file10f9822031afa/wpgpDownloadR_0.1.0.tar.gz' had non-zero exit status
@michielvandijk
Copy link
Author

I found the solution to my problem here: r-lib/remotes#403 It has to do with the removes package which actually seems to stop installation in case of warnings, such as having a (slightly) older package installed (in my case RCurl 4.0.2 instead of 4.0.3). This can be fixed by setting: Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true") before using install_github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant