Skip to content

Commit

Permalink
Make sure RStudio sees new env vars we set
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Nov 2, 2023
1 parent bbcba1e commit 07af31c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ apt_install \
export VIRTUAL_ENV="${VIRTUAL_ENV:=/opt/venv}"
export PATH="${VIRTUAL_ENV}/bin:${PATH}"

# Make sure that Rstudio sees these env vars too
echo "PATH=${PATH}" >> "${R_HOME}/etc/Renviron.site"
echo "VIRTUAL_ENV=${VIRTUAL_ENV}" >> "${R_HOME}/etc/Renviron.site"

python3 -m venv "${VIRTUAL_ENV}"

# Upgrade version of pip inside the virtualenv
Expand Down

0 comments on commit 07af31c

Please sign in to comment.