From h.wickham at gmail.com  Wed Mar 19 15:17:47 2014
From: h.wickham at gmail.com (Hadley Wickham)
Date: Wed, 19 Mar 2014 09:17:47 -0500
Subject: [Rd] [RFC] A case for freezing CRAN
In-Reply-To: <CAC2h7utmzLPR-cT1pDpnH7gvE0Fzjy5JO363sqBj-f621t22MQ@mail.gmail.com>
References: <CABFfbXt0PjHEw-4=VfeWeeosm_wOBH-fVsj85j9LMe81Lx0gWQ@mail.gmail.com>
	<CAPPM_gS1Ey2UyyBSCqecT=NzWXKtREBoXmqNBussR8Hv1Zok3g@mail.gmail.com>
	<CAC2h7utmzLPR-cT1pDpnH7gvE0Fzjy5JO363sqBj-f621t22MQ@mail.gmail.com>
Message-ID: <CABdHhvHyKqu4mSn6Ziw=GgOR8pQOXnGRXW4fZr8H0z41Gkpo4g@mail.gmail.com>

> What would be more useful in terms of reproducibility is the capability of
> installing a specific version of a package from a repository using
> install.packages(), which would require archiving older versions in a
> coordinated fashion. I know CRAN archives old versions, but I am not aware
> if we can programmatically query the repository about this.

See devtools::install_version().

The main caveat is that you also need to be able to build the package,
and ensure you have dependencies that work with that version.

Hadley


-- 
http://had.co.nz/



[Rd] [RFC] A case for freezing CRAN
Hadley Wickham