我正在使用R 3.1.3并在http://cran.at.r-project.org/web/packages/Rcplex/index.html
通过tar.gz文件安装了Rcplex当我加载库时,我得到以下错误:
library (Rcplex)
Error in library(Rcplex) : ‘Rcplex’ is not a valid installed package
编辑:
通过提取tar.gz文件的内容来安装软件包,其中存储/安装了其他库。
还尝试通过源安装它:
install.packages ("<file path>/Rcplex_0.3-2.tar.gz", repos=NULL,type="source")
In install.packages("("<file path>//Rcplex_0.3-2.tar.gz",: installation of package ‘("<file path>/Rcplex_0.3-2.tar.gz’ had non-zero exit status
最后,通过CRAN网址尝试。
install.packages ("Rcplex", repos="http://cran.us.r-project.org",type="source")
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib
Warning message: package ‘Rcplex’ is not available (for R version 3.1.3)