kopia lustrzana https://github.com/jupyterhub/repo2docker
Use new path for Renviron
rodzic
4ccbdddeb5
commit
c123d7bf32
|
@ -302,9 +302,9 @@ class RBuildPack(PythonBuildPack):
|
||||||
# Set paths so that RStudio shares libraries with base R
|
# Set paths so that RStudio shares libraries with base R
|
||||||
# install. This first comments out any R_LIBS_USER that
|
# install. This first comments out any R_LIBS_USER that
|
||||||
# might be set in /etc/R/Renviron and then sets it.
|
# might be set in /etc/R/Renviron and then sets it.
|
||||||
r"""
|
rf"""
|
||||||
sed -i -e '/^R_LIBS_USER=/s/^/#/' /etc/R/Renviron && \
|
sed -i -e '/^R_LIBS_USER=/s/^/#/' /opt/R/{self.r_version}/lib/R/etc/Renviron && \
|
||||||
echo "R_LIBS_USER=${R_LIBS_USER}" >> /etc/R/Renviron
|
echo "R_LIBS_USER=${{R_LIBS_USER}}" >> /opt/R/{self.r_version}/lib/R/etc/Renviron
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
@ -317,8 +317,6 @@ class RBuildPack(PythonBuildPack):
|
||||||
r"""
|
r"""
|
||||||
R RHOME && \
|
R RHOME && \
|
||||||
mkdir -p /usr/lib/R/etc /etc/rstudio && \
|
mkdir -p /usr/lib/R/etc /etc/rstudio && \
|
||||||
echo 'options(repos = c(CRAN = "{cran_mirror_url}"))' > /usr/lib/R/etc/Rprofile.site && \
|
|
||||||
echo 'options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))' >> /usr/lib/R/etc/Rprofile.site && \
|
|
||||||
echo 'r-cran-repos={cran_mirror_url}' > /etc/rstudio/rsession.conf
|
echo 'r-cran-repos={cran_mirror_url}' > /etc/rstudio/rsession.conf
|
||||||
""".format(
|
""".format(
|
||||||
cran_mirror_url=cran_mirror_url
|
cran_mirror_url=cran_mirror_url
|
||||||
|
|
Ładowanie…
Reference in New Issue