如何继续使用R版2.x并自动下载包与install.packages()包名?

时间:2022-07-15 19:41:49

My work setup relies heavily on rcom library, which is so far unavailable for R 3.x (due to licensing problems).

我的工作设置很大程度上依赖于rcom库,这是迄今为止R 3.x无法使用的(由于许可问题)。

I'm happy to keep using the R v. 2.15.3, but the install.packages doesn't fetch new packages anymore.

我很高兴继续使用R v 2.15.3,但install.packages不再获取新的包。

Is there any way of making old R download packages on demand with something like install.packages("MASS")?

是否有任何方法可以使用install.packages(“MASS”)之类的东西按需制作旧的R下载包?

1 个解决方案

#1


1  

OK, this is the fallback solution:

好的,这是后备解决方案:

We can always download (windows) old packages from this location on the CRAN site and unpack the ZIPs into C:\Program Files\R\R-2.15.3\library or equivalent. But it would be cool to use some form of simple R command for doing it.

我们总是可以从CRAN站点上的这个位置下载(windows)旧包,并将ZIP解压缩到C:\ Program Files \ R \ R-2.15.3 \ library或同等版本。但是使用某种形式的简单R命令来做这件事会很酷。

It is also possible to try using different mirrors, because mirrors are not equivalent with respect to volume of archives.

也可以尝试使用不同的镜子,因为镜子在档案体积方面并不相同。

At least this is how I do it on (virtual) Windows XP 32 bit.

至少这是我在(虚拟)Windows XP 32位上的操作方式。

#1


1  

OK, this is the fallback solution:

好的,这是后备解决方案:

We can always download (windows) old packages from this location on the CRAN site and unpack the ZIPs into C:\Program Files\R\R-2.15.3\library or equivalent. But it would be cool to use some form of simple R command for doing it.

我们总是可以从CRAN站点上的这个位置下载(windows)旧包,并将ZIP解压缩到C:\ Program Files \ R \ R-2.15.3 \ library或同等版本。但是使用某种形式的简单R命令来做这件事会很酷。

It is also possible to try using different mirrors, because mirrors are not equivalent with respect to volume of archives.

也可以尝试使用不同的镜子,因为镜子在档案体积方面并不相同。

At least this is how I do it on (virtual) Windows XP 32 bit.

至少这是我在(虚拟)Windows XP 32位上的操作方式。