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

R version control error for pophelper #67

Open
aramo685 opened this issue Nov 8, 2020 · 3 comments
Open

R version control error for pophelper #67

aramo685 opened this issue Nov 8, 2020 · 3 comments
Labels
question How to do something

Comments

@aramo685
Copy link

aramo685 commented Nov 8, 2020

Hi
I am having some problem installing pophelper package in R version 3.6.0 for Windows 10. I am using the following code:

code

system('defaults write org.R-project.R force.LANG en_US.UTF-8')
install.packages(c("Cairo","ggplot2","gridExtra","gtable","tidyr","devtools"),dependencies=T)
devtools::install_github('royfrancis/pophelper')
library(pophelper)

##error message
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

Installing package into ‘C:/Users/mgara/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)

  • installing source package 'pophelper' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error: (converted from warning) package 'ggplot2' was built under R version 3.6.3
    Execution halted
    ERROR: lazy loading failed for package 'pophelper'
  • removing 'C:/Users/mgara/Documents/R/win-library/3.6/pophelper'
    Error: Failed to install 'pophelper' from GitHub:
    (converted from warning) installation of package ‘C:/Users/mgara/AppData/Local/Temp/RtmpMv0EoJ/file22dc66d76dd1/pophelper_2.3.0.tar.gz’ had non-zero exit status

Please help me.
Regards
Motia

@royfrancis royfrancis added the question How to do something label Nov 9, 2020
@royfrancis
Copy link
Owner

Yep. You still to install Rtools on windows to be able to build packages. Go here and download the Rtools version depending on your R version. Install it, restart your computer, then try the installation again.

@aramo685
Copy link
Author

Hi again
Yes, I installed Rtools on windows and then restarted my computer and then tried the installation but again the same error message that-
Installing package into ‘C:/Users/mgara/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package 'pophelper' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error: (converted from warning) package 'ggplot2' was built under R version 4.0.3
    Execution halted
    ERROR: lazy loading failed for package 'pophelper'
  • removing 'C:/Users/mgara/Documents/R/win-library/4.0/pophelper'
    Error: Failed to install 'pophelper' from GitHub:
    (converted from warning) installation of package ‘C:/Users/mgara/AppData/Local/Temp/Rtmp8OcIcv/file2d6417913c3e/pophelper_2.3.0.tar.gz’ had non-zero exit status

what is mean by that - pophelper_2.3.0.tar.gz’ had non-zero exit status

Regards
Motia

@jks383
Copy link

jks383 commented Apr 13, 2021

I had the same issue, was this resolved?

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

No branches or pull requests

3 participants