当我们的R版本没有包时该怎么办?(复制)

时间:2022-08-15 16:59:32

This question already has an answer here:

这个问题已经有了答案:

Very often, when I try to download a package, I've got the following message :

通常,当我尝试下载一个软件包时,我得到了以下信息:

Warning in install.packages :
  package ‘XXXX’ is not available (for R version 3.0.1)

Is it not possible to simulate an old version of R to use the package ?

是否不可能模拟一个旧版本的R来使用这个包?

1 个解决方案

#1


4  

Try something like:

尝试:

packageurl <- "http://cran.r-project.org/src/contrib/Archive/XXXX/XXXX_A.B.C.tar.gz"
install.packages(packageurl, contriburl=NULL, type="source")

where XXXX is your package name and A.B.C is the version of the package (not R).

XXXX是您的包名和A.B. ?C是包的版本(不是R)。

#1


4  

Try something like:

尝试:

packageurl <- "http://cran.r-project.org/src/contrib/Archive/XXXX/XXXX_A.B.C.tar.gz"
install.packages(packageurl, contriburl=NULL, type="source")

where XXXX is your package name and A.B.C is the version of the package (not R).

XXXX是您的包名和A.B. ?C是包的版本(不是R)。