我想在集群(具有特定版本)中安装一些R软件包以进行分析,这是我的代码
devtools::install_version("lmerTest", version = "3.1-2",repo = "https://lib.ugent.be/CRAN/", dependencies = TRUE, type = "source")
library(lmerTest)
但是我收到一条错误消息
Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'unknown package' from URL:
(converted from warning) installation of package 'Rcpp' had non-zero exit stat
us
Execution halted
有人可以指导我,我该怎么办?
注释中的代码:
这是我的安装代码
options(warn=0, error=NULL)
library(devtools)
library("Rcpp")
library(remote)
library("dplyr")
library(lsmeans)
devtools::install_version("lme4", version = "1.1-23",repo = "lib.ugent.be/CRAN", dependencies = TRUE, type = "source",options(warn=0, error=NULL))
library(lme4) # 1.1-23
devtools::install_version("lmerTest", version = "3.1-2",repo = "lib.ugent.be/CRAN", dependencies = TRUE, type = "source",
options(warn=0, error=NULL,(install.packages.compile.from.source = "no")))
#dependencies=TRUE
library(lmerTest)
this is the error message which i have in cluster
" #devtools::install_version("lme4", version = "1.1-23",repo = "https://lib.ugen
t.be/CRAN/", dependencies = TRUE, type = "source",options(warn=0, error=NULL,(in
stall.packages.compile.from.source = "no")))
> devtools::install_version("lme4", version = "1.1-23",repo = "https://lib.ugent
.be/CRAN/", dependencies = TRUE, type = "source",options(warn=0, error=NULL))
Downloading package from url: https://lib.ugent.be/CRAN/src/contrib/lme4_1.1-23.
tar.gz
Error: Failed to install 'unknown package' from URL:
'arg' must be NULL or a character vector
Execution halted "