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.