-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 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,2 +1,6 @@ | ||
message("Do you want to use `renv::activate`? (Warning: not useable within Docker!) [Y/n]\n") | ||
|
||
if (readline() %in% c("", "Y", "y")) {source("renv/activate.R")} else {message("renv not activated, continuing...")} | ||
|
||
message('You are in your Teen Preg project') | ||
pts <- function(size) return(size*5/14) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM rocker/tidyverse | ||
LABEL maintainer="Andrew Baxter <a.baxter.1@research.gla.ac.uk>" | ||
|
||
ENV RENV_VERSION 0.13.0 | ||
RUN apt-get update && apt-get -y --no-install-recommends install libudunits2-dev libgdal-dev | ||
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))" | ||
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')" | ||
|
||
WORKDIR /project | ||
COPY renv.lock renv.lock | ||
RUN R -e 'renv::restore()' | ||
COPY . /home/rstudio |
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