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

explicitly explaining setting of RENV_ROOT variable? #5

Open
AltfunsMA opened this issue Jan 3, 2021 · 1 comment
Open

explicitly explaining setting of RENV_ROOT variable? #5

AltfunsMA opened this issue Jan 3, 2021 · 1 comment

Comments

@AltfunsMA
Copy link

AltfunsMA commented Jan 3, 2021

I was just confused by things only half working when I cloned the repo outside of my home directory (which has limited capacity). I ended up looking into the code and realised I needed to set the RENV_ROOT variable to the cloned folder. Maybe this is obvious to most people but perhaps could be mentioned in the README?

@AltfunsMA AltfunsMA changed the title R-build not adding the install command explicitly explaining setting of RENV_ROOT variable? Jan 3, 2021
@viking
Copy link

viking commented Jan 7, 2021

Renv currently expects to be installed in your home area, but as you discovered, you can set RENV_ROOT yourself if you installed it somewhere else. Here's a snippet from the Renv main script:

if [ -z "${RENV_ROOT}" ]; then
  RENV_ROOT="${HOME}/.Renv"
else
  RENV_ROOT="${RENV_ROOT%/}"
fi
export RENV_ROOT

You're right though, this should probably be documented somewhere useful.

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

2 participants