installing older R packages

I am having trouble installing some older R packages, I am using the following commands

require(devtools) Loading required package: devtools install_version("party", version = "1.0.25", repos = "http://cran.us.r-project.org")

Error in as.POSIXct.default(value) : do not know how to convert 'value' to class “POSIXct”

Does anyone know what this error means?

Upvotes: 0

Views: 412

Answers (1)

Uri Simonsohn
Uri Simonsohn

Reputation: 86

You can use the package groundhog to install older versions of CRAN packages. Like this:

library('groundhog')
groundhog.library(<pkg>, <date>)

groundhog will also install all dependencies for the requested package as available on that date, and if a different version of R was available at the time, tell you which version will give you the fastest install time and highest likelihood of succesfully using the older package version.

Learn more at http://groundhogr.com

Upvotes: 2

Related Questions