Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rprofile.site #59

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
})