# install yesterday's version of checkpoint, by date
install.dates('checkpoint', Sys.Date() - 1)
# install earlier versions of checkpoint and devtools
install.versions(c('checkpoint', 'devtools'), c('0.3.3', '1.6.1'))
这样做的好处是不需要 Rtools 在 Windows 上安装二进制包,只需要从2014-09-17(MRAN 启动时)开始就可以使用。
从命令行(R 以外)安装旧版本:
一旦包源(“ tarball”)本地在您的机器上,您还可以通过在命令行(Terminal、 Command Prompt 等)上使用 R CMD INSTALL来安装一个包,例如使用 wget(如果有的话) :
# Install old versions of the e1071 and gtools packages.
# Create vectors of the package names and versions to install
# Note the names and version numbers must be in the same order
Names <- c("e1071", "gtools")
Vers <- c("1.6", "2.6.1")
# Install old package versions into the default library
InstallOldPackages(pkgs = Names, versions = Vers)
# Latest version (not available at Archive/svglite)
https://cran.r-project.org/src/contrib/svglite_1.2.1.tar.gz
# Archived version
https://cran.r-project.org/src/contrib/Archive/svglite/svglite_1.2.0.tar.gz