This file contains hidden or 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
| FROM rocker/verse:4.2.0 | |
| RUN R -q -e 'install.packages("remotes")' | |
| # add a new file-based remote to options()$repos | |
| COPY setup_repos.R setup_repos.R | |
| # add it on startup | |
| RUN mkdir -p /usr/local/lib/R/etc/ /usr/lib/R/etc/ | |
| RUN cat setup_repos.R | tee /usr/local/lib/R/etc/Rprofile.site | tee /usr/lib/R/etc/Rprofile.site |
This file contains hidden or 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
| # Make some sample R plots | |
| # | |
| ############################################# | |
| # Delete all variables | |
| rm(list = ls()) | |
| set.seed(123) | |
| # dplyr: an awesome package to manipulate data easily |