rocker-org / rocker-versioned

Run current & prior versions of R using docker
https://hub.docker.com/r/rocker/r-ver
GNU General Public License v2.0
297 stars 169 forks source link

added example R script for installing from previous CRAN states with swi... #6

Closed gmbecker closed 9 years ago

gmbecker commented 9 years ago

Example using switchr and crandb to installf rom previous CRAN states.

Wasn't sure where to put the file so I put it in the root directory. Can be moved as desired.

gmbecker commented 9 years ago

@cboettig Only weeks later than I promised it!

API (name of the Install function) subject to change.

kforner commented 9 years ago

Nice Gabe.

Using this system "one" could easily setup and populate legacy MRAN snapshots repositories (which started something like july 2014)

P.s By the way I do not think that the head and tail params are actually used in DB().

On Mon, Nov 10, 2014 at 5:35 PM, Gabe Becker notifications@github.com wrote:

@cboettig https://github.com/cboettig Only weeks later than I promised it!

API (name of the Install function) subject to change.

— Reply to this email directly or view it on GitHub https://github.com/rocker-org/rocker-versioned/pull/6#issuecomment-62411721 .

gmbecker commented 9 years ago

@kforner, I wondered about the tail thing too. That isn't my code (if it were it wouldn't be using the pipe), I lifted directly from the crandb readme.

As for MRAN, yes, we could populate MRAN repositories this way (and the CRAN Archive servers would probably thank us for it), but we also explicitly don't need to. We don't need a (pre-existing) repository at all, just the manifest.

kforner commented 9 years ago

Hi Gabe, sorry for the delay. My use case if a bit different, my starting point is not a manifest, but a list of package names retrieved from dependencies of a set of packages (our own packages, as a matter of fact). So I do not have the versions of the packages, but just a (snapshot) date.

On Mon, Nov 10, 2014 at 6:33 PM, Gabe Becker notifications@github.com wrote:

@kforner https://github.com/kforner, I wondered about the tail thing too. That isn't my code (if it were it wouldn't be using the pipe), I lifted directly from the crandb readme.

As for MRAN, yes, we could populate MRAN repositories this way (and the CRAN Archive servers would probably thank us for it), but we also explicitly don't need to. We don't need a (pre-existing) repository at all, just the manifest.

— Reply to this email directly or view it on GitHub https://github.com/rocker-org/rocker-versioned/pull/6#issuecomment-62421288 .

gmbecker commented 9 years ago

@kforner but crandb is able to map a date to a set of package versions, or more generally to an R version.

~G

On Tue, Nov 18, 2014 at 9:58 AM, Karl Forner notifications@github.com wrote:

Hi Gabe, sorry for the delay. My use case if a bit different, my starting point is not a manifest, but a list of package names retrieved from dependencies of a set of packages (our own packages, as a matter of fact). So I do not have the versions of the packages, but just a (snapshot) date.

On Mon, Nov 10, 2014 at 6:33 PM, Gabe Becker notifications@github.com wrote:

@kforner https://github.com/kforner, I wondered about the tail thing too. That isn't my code (if it were it wouldn't be using the pipe), I lifted directly from the crandb readme.

As for MRAN, yes, we could populate MRAN repositories this way (and the CRAN Archive servers would probably thank us for it), but we also explicitly don't need to. We don't need a (pre-existing) repository at all, just the manifest.

— Reply to this email directly or view it on GitHub < https://github.com/rocker-org/rocker-versioned/pull/6#issuecomment-62421288>

.

— Reply to this email directly or view it on GitHub https://github.com/rocker-org/rocker-versioned/pull/6#issuecomment-63514875 .

Gabriel Becker Graduate Student Statistics Department University of California, Davis