From a098f95dc4b728497ca4020d40253cfa2e947b61 Mon Sep 17 00:00:00 2001 From: Yuvi Panda Date: Wed, 22 Jun 2022 23:37:42 -0700 Subject: [PATCH] Point to a tagged version of rstudio Co-authored-by: Simon Li --- repo2docker/buildpacks/r.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo2docker/buildpacks/r.py b/repo2docker/buildpacks/r.py index 4b9c5381..0510db63 100644 --- a/repo2docker/buildpacks/r.py +++ b/repo2docker/buildpacks/r.py @@ -140,7 +140,8 @@ class RBuildPack(PythonBuildPack): return super().get_env() + [ # rstudio (rsession) can't seem to find R unless we explicitly tell it where # it is - just $PATH isn't enough. I discovered these are the env vars it - # looks for by digging through RStudio source and finding https://github.com/rstudio/rstudio/blob/main/src/cpp/r/session/RDiscovery.cpp + # looks for by digging through RStudio source and finding + # https://github.com/rstudio/rstudio/blob/v2022.02.3+492/src/cpp/r/session/RDiscovery.cpp ("R_HOME", f"/opt/R/{self.r_version}/lib/R"), ("R_DOC_DIR", "${R_HOME}/doc"), ("LD_LIBRARY_PATH", "${R_HOME}/lib:${LD_LIBRARY_PATH}"),