This question already has an answer here:
这个问题已经有了答案:
- How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning? 13 answers
- 我该如何处理“包装xxx”不可用(R版本x.y.z)“警告?”13个答案
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)。