Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rocker/rstudio:3.5.3 as base image
- Loading branch information
Showing
3 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Only run this after making packrat/packrat.lock by | ||
# running install_packages.R | ||
|
||
FROM rocker/tidyverse:3.5.3 | ||
FROM rocker/rstudio:3.5.3 | ||
|
||
RUN apt-get update | ||
|
||
COPY ./packrat/packrat.lock packrat/ | ||
|
||
RUN install2.r packrat | ||
|
||
RUN Rscript -e 'packrat::restore()' | ||
|
||
# .Rprofile doesn't get parsed by Rstudio, so modify Rprofile.site instead | ||
# This is needed so R uses packrat libraries by default | ||
# Modify Rprofile.site so R loads packrat library by default | ||
RUN echo '.libPaths("/packrat/lib/x86_64-pc-linux-gnu/3.5.3")' >> /usr/local/lib/R/etc/Rprofile.site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters