I know that you can download old packages and install them with
R CMD INSTALL package-version.tar.gz
I wonder if you can tell install.packages()
to install a specific version from a repository, saving you from having to locate the tar.gz first. I have neither found this option in the help entry for install.packages nor googling for it. If this option does not exist, is there any reason for that?. I can only think that not all repos have all versions so you are forced to find the version first and download it.
There is an equivalent question already in SO but the problem and answer is more about repository problems, so at the end they never answered this question directly.
install.packages()
does not, but there is a function install_version()
in the devtools
package which can install a version other than the most recent one from a CRAN repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With