Skip to content

Commit b85df8f

Browse files
committed
Refactored R command
1 parent 52e8076 commit b85df8f

File tree

1 file changed

+3
-3
lines changed
  • repo2docker/buildpacks

1 file changed

+3
-3
lines changed

repo2docker/buildpacks/r.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ def get_build_scripts(self):
344344
"${NB_USER}",
345345
# Install a pinned version of devtools, IRKernel and shiny
346346
rf"""
347-
EXPANDED_CRAN_MIRROR_URL="$(. /etc/os-release && echo {cran_mirror_url} | envsubst)" && \
348-
R --quiet -e "install.packages(c('devtools', 'IRkernel', 'shiny'), repos='${{EXPANDED_CRAN_MIRROR_URL}}')" && \
349-
R --quiet -e "IRkernel::installspec(prefix='$NB_PYTHON_PREFIX')"
347+
export EXPANDED_CRAN_MIRROR_URL="$(. /etc/os-release && echo {cran_mirror_url} | envsubst)" && \
348+
R --quiet -e "install.packages(c('devtools', 'IRkernel', 'shiny'), repos=Sys.getenv(\"EXPANDED_CRAN_MIRROR_URL\"))" && \
349+
R --quiet -e "IRkernel::installspec(prefix=Sys.getenv(\"NB_PYTHON_PREFIX\"))"
350350
""",
351351
),
352352
]

0 commit comments

Comments
 (0)