Skip to content

Commit

Permalink
Merge pull request #59 from abkfenris/RProfile
Browse files Browse the repository at this point in the history
Use Rprofile.site
  • Loading branch information
abkfenris authored Aug 16, 2022
2 parents 0ee900a + 88e0ecb commit f743e9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions r/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,11 @@ RUN Rscript -e "remotes::install_cran('assertthat', dependencies=FALSE, upgrade_
Rscript -e "remotes::install_github('kwstat/pals', dependencies=FALSE, upgrade_dependencies=FALSE, upgrade=FALSE)"

COPY CONDARC ./.condarc
COPY Rprofile.site /opt/conda/lib/R/etc/

ENV PATH /usr/lib/rstudio-server/bin/:${PATH}

ENV LD_LIBRARY_PATH=${CONDA_DIR}/lib
ENV PROJ_LIB=${CONDA_DIR}/share/proj
ENV GDAL_DATA=${CONDA_DIR}/share/gdal
ENV GDAL_DRIVER_PATH=${CONDA_DIR}/lib/gdalplugins

# USER root
# RUN chown -R jovyan ${CONDA_DIR}
Expand Down
5 changes: 5 additions & 0 deletions r/Rprofile.site
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local({
Sys.setenv(PROJ_LIB="/opt/conda/share/proj")
Sys.setenv(GDAL_DATA="/opt/conda/share/gdal")
Sys.setenv(GDAL_DRIVER_PATH="/opt/conda/lib/gdalplugins")
})

0 comments on commit f743e9d

Please sign in to comment.