BMILAB / AStrap

AStrap: Identification of alternative splicing from transcript sequences without a reference genome
GNU General Public License v2.0
4 stars 4 forks source link

Install fails due to "package '...' was built under R version x.y.z" #4

Open BMILAB opened 4 years ago

BMILAB commented 4 years ago

if you use the R version 3.6, you may encounter the following problems like

install_github("BMILAB/scNPF")
* installing *source* package ‘scNPF’ ... 
** using staged installation 
** R 
** data 
*** moving datasets to lazyload DB 
** byte-compile and prepare package for lazy loading 
Error: (converted from warning) package ‘foreach’ was built under R version 3.6.2 
Execution halted
ERROR: lazy loading failed for package ‘scNPF’ * removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/scNPF’ 
Error: Failed to install 'scNPF' from GitHub:   (converted from warning) installation of package ‘/var/folders/sc/7

Please setting Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS=TRUE) fixes it,

install.packages("devtools")
library(devtools)
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS=TRUE) 
install_github("BMILAB/AStrap")
library(AStrap)