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

Feature Request: RStudio Package Manager - Primary CRAN Repo in a per Project Basis #6911

Closed
jtelleriar opened this issue May 19, 2020 · 4 comments
Labels
enhancement projects stale Issues which have been closed automatically due to inactivitiy.

Comments

@jtelleriar
Copy link

Would it be possible to add within RStudio Projects Pane, an option to choose, the Primary CRAN Repo from RStudio Package Manager?:

image

image

In that way, If I share my RStudio Project with other colleagues, I can freeze my Package Repository Version to a given date (Eg: "https://packagemanager.rstudio.com/all/281"), plus use renv for reproducibility.

Thank you!

@kevinushey
Copy link
Contributor

If you're using renv, the repositories will already be encoded in renv.lock. Is that sufficient?

@jtelleriar
Copy link
Author

jtelleriar commented May 19, 2020

Yes, but if you are not using renv:

A simple Primary CRAN Repo Specification within the project, plus .libPaths() pointing to the Project Repository (Where Packages would be saved) might also be interesting for basic project isolation, that is:

Being able to simply execute install.package(), without worrying of renv lock (and all nuances that come with it), but without being worried of interfering on other projects.

It could be handled by simply adding a line to .Rproj pointing to the main CRAN repository, eg:

Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: LATIN1

RnwWeave: Sweave
LaTeX: pdfLaTeX
PrimaryCRANRepo: 

And taking care from .libPaths() in a basic way

@stale
Copy link

stale bot commented Feb 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale Issues which have been closed automatically due to inactivitiy. label Feb 5, 2021
@stale
Copy link

stale bot commented Feb 19, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement projects stale Issues which have been closed automatically due to inactivitiy.
Projects
None yet
Development

No branches or pull requests

4 participants