0

Installing older version of R package shows how to install a different version of an R package.

Can that be automated so I can have it install the newest (older) version that is compatible with my R installation?

In my case I need it for Rcpp, but a general solution working for any package would be preferred.

Community
  • 1
  • 1
Ole Tange
  • 31,768
  • 5
  • 86
  • 104
  • Can you provide a little more detail? What version of R are you running, and why isn't the latest version? – Thomas Feb 28 '14 at 11:59
  • 1
    I posted an untested function as an answer here: http://stackoverflow.com/questions/16091304/efficiently-getting-older-versions-of-r-packages. The function itself is somewhat incomplete, but I have added some notes about what I think should be done for further development. – A5C1D2H2I1M1N2O1R2T1 Feb 28 '14 at 12:01
  • @Thomas I need the function for distributing software: I will not know which version of R my users have. – Ole Tange Feb 28 '14 at 12:09
  • @AnandaMahto I get: Error in install_archive("reshape") : could not find function "htmlParse" – Ole Tange Feb 28 '14 at 12:10
  • 1
    @OleTange Run `install.packages('XML')`. – Thomas Feb 28 '14 at 12:12
  • @Thomas > install_archive("reshape") Loading required package: devtools Downloading reshape_0.8.3.tar.gz from http://cran.r-project.org/src/contrib/Archive/reshape_0.8.3.tar.gz Error: client error: (404) Not Found – Ole Tange Feb 28 '14 at 15:14
  • The link you want is: http://cran.r-project.org/src/contrib/Archive/reshape/reshape_0.8.3.tar.gz. You should update @AnandaMahto's function accordingly (it's missing the "/reshape/" portion of the URL). – Thomas Feb 28 '14 at 15:17

0 Answers0