royfrancis / pophelper

An R package to analyse and visualise admixture proportions from STRUCTURE, fastSTRUCTURE, TESS, ADMIXTURE etc.

Home Page:http://royfrancis.github.io/pophelper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R version control error for pophelper

aramo685 opened this issue · comments

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

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.

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

I had the same issue, was this resolved?