Skip to content
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

Multiple versions of packages in miniCRAN #80

Closed
statquant opened this issue Dec 7, 2016 · 5 comments
Closed

Multiple versions of packages in miniCRAN #80

statquant opened this issue Dec 7, 2016 · 5 comments

Comments

@statquant
Copy link

There is something I do not understand, it looks like addOldPackage show a warning when there are 2 versions of the same package. This is precisely what I want, I want to be able to install the lattest package version from my miniCran when another developer install an old version.
Is this supported ?
If not is there another package that does ?
Or maybe that does not make sense and I'll be happy to learn

@sfweller
Copy link

sfweller commented Dec 7, 2016

The miniCRAN package itself does not really have a automated way to maintain different versions of specific R packages. You can do that, but you need to take care of the versions of the packages yourself, if they reside in the same repository.

For more information, you can refer to the information on this page:
https://mran.microsoft.com/web/packages/miniCRAN/vignettes/miniCRAN-introduction.html

in the section that discusses 'Adding a older version of a package from CRAN'.

You can also use the 'checkpoint' package instead, which is also available from CRAN. That package allows you to install packages created at different snapshot dates, so you can keep different versions of a package in a different local snapshot repository.

Hope this helps.

Steve Weller

@statquant
Copy link
Author

Hello Steve, thanks for your answer. I have been reading the vignettes and that's the reason of my question. They clearly mention that duplicates packages have to be 'cleared'. Are you saying that it is fine to leave them be and that the repo will be fine ?

Let me discribe my use case: I want to centralize the r packages used by several people (so they stop installing personal libraries everywhere), but I want to allow them to get the latest version as soon as it is out. So I need to be able to create a repo that have several versions.
The idea is that when people create their packages, they would use packrat to isolate what they need, and to install the package they would use only the miniCRAN.
Right now I miss a miniCRAN like that would allow me to deal with several versions and to which I can add packages as I like fron cran/github/...
Regards

@shapenaji
Copy link

shapenaji commented Feb 9, 2017

Hi miniCRAN! I had a pressing need for the version control internally at my company, so I wrote up my own package and put it up on github to do something a bit similar,

Specifically for versioning.

When multiple versions exist in my repo, I store each one under a new name in the index.

So install.packages('miniCRAN_0.1.0', 'http://path/to/my/repo') will install version 0.1.0, while install.packages('miniCRAN', 'http://path/to/my/repo') will install the most recent version in the repository. https://github.com/shapenaji/cranium/

See what you think, or if there's anything you can use!

@statquant
Copy link
Author

statquant commented Feb 10, 2017 via email

@andrie
Copy link
Owner

andrie commented Jun 29, 2019

A true CRAN repository will not allow multiple versions of the same package. Whenever a new package version is added, the old version should move to the archive. This isn't implemented in miniCRAN yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants