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

Initial commit for packrat installation in R #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manasvita
Copy link
Contributor

Initial commit for the instructions on using Packrat in R

Initial commit for the instructions on using Packrat in R
@manasvita
Copy link
Contributor Author

manasvita commented Dec 29, 2023

@pkrastev, @pedmon, & @paulasanematsu, assigning you as reviewers here. Please let me know if the instructions look good and if this is an appropriate place for the document.

https://github.com/fasrc/User_Codes/blob/packrat-mj/Languages/R/Packrat_for_R.md

@manasvita
Copy link
Contributor Author

Hey @paulasanematsu, could you take a look at this and let me know if any edits are required or not? Will go ahead and merge the branch otherwise. Thanks.

@paulasanematsu
Copy link
Contributor

I successfully installed packrat and viridis following the document instructions.

You probably need to be clear which RStudio these instructions are valid for. They would work with Remote Desktop -> launch RStudio Desktop from within Remote Desktop. However, they will not work on RStudio Server app because you cannot set R_LIBS_USER and you cannot load modules either.

I am not entirely sure, I would have to discuss with Nathan Weeks to be sure, but packrat may not be a good solution for RStudio Server because Nathan uses locked-in versions of packages to ensure package compatibility.

@paulasanematsu
Copy link
Contributor

Also, you might want to include steps to use packrat in two more instances:

  1. after user logs out. How do you get back to the same packrat environment?
  2. in a job script. How do you use a packrat environment in a batch job?

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

Successfully merging this pull request may close these issues.

2 participants