-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
best way to locally capture and restore packages #8
Comments
@benmarwick Apologies for not responding sooner. switchr and GRANBase are not focused on capturing package sources locally for installation later. In fact, the manifest design is specifically intended to not require that (though I admit it does require internet access, which other solutions such as packrat do not). The model here is to publish a manifest, e.g. as a gist, and then you or others install from that manifest as necessary. That said, what you want should be possible with makeRepo from the API_refactor branch in this repository (which I hope to merge as a major update to master sometime this week), via the code: man = libManifest() # get our manifest of installed pkgs
param = RepoBuildParam(basedir = <dir>, install_test = FALSE, check_test = FALSE)
repo = GRANRepository(manifest = man, param = param)
makeRepo(repo) That currently won't work due to a bug writing this up discovered, but I will track that down and fix that shortly. Once it works, that will create a fully local package repository containing the contents of the manifest. Thanks for your interest, and I will keep you abreast of bug squashing, etc via comments here. |
Thanks very much for looking over my example and the further explanation, that's very helpful. I look forward to testing the |
@benmarwick Apologies for the delay. The branch (API_refactor) that I Thanks, On Thu, Feb 5, 2015 at 12:35 PM, Ben Marwick notifications@github.com
Gabriel Becker, PhD |
Thanks for joining @cboettig and I at cboettig/nonparametric-bayes#55 (comment) I wonder if you could advise me if I've got the right idea here:
I've got your package on my computer with this...
Now I'm doing some work, for example...
Now I want to capture my working environment by getting the packages currently used by my R session for this analysis and store them locally where I can have a compendium that includes my R scripts and a nearby directory with the versions of the packages used in those scripts. Am I on the right track with this next bit?
Time passes... we want to go back to that work we did earlier and install those local old packages into our current env...
I'm not sure what's going on here, do I now have those old local packages installed in my current env, is that correct? Is this the right way about it, or is there a simpler way?
thanks!
The text was updated successfully, but these errors were encountered: