From fa38459d3a5a0114ba3be33c12580a9dbb64b480 Mon Sep 17 00:00:00 2001 From: Jordi Rosell Date: Fri, 29 Dec 2023 12:56:57 +0100 Subject: [PATCH] renv disabled by default --- .Rprofile | 1 - .gitignore | 3 +++ renv.Dockerfile | 3 ++- renv/.gitignore | 9 ++++++++- 4 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 .Rprofile diff --git a/.Rprofile b/.Rprofile deleted file mode 100644 index 81b960f..0000000 --- a/.Rprofile +++ /dev/null @@ -1 +0,0 @@ -source("renv/activate.R") diff --git a/.gitignore b/.gitignore index e75435c..ded30ad 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,6 @@ po/*~ # RStudio Connect folder rsconnect/ + +# Generated dinamically from renv.Dockerfile +.Rprofile \ No newline at end of file diff --git a/renv.Dockerfile b/renv.Dockerfile index aedb30c..b2882e1 100644 --- a/renv.Dockerfile +++ b/renv.Dockerfile @@ -5,7 +5,8 @@ WORKDIR /workspace RUN R -e "install.packages(c('renv'))" COPY renv.lock renv.lock RUN mkdir -p renv -COPY .Rprofile .Rprofile + +RUN echo 'source("renv/activate.R")' >> .Rprofile COPY renv/activate.R renv/activate.R COPY renv/settings.json renv/settings.json RUN mkdir renv/cache diff --git a/renv/.gitignore b/renv/.gitignore index df7e4b2..c2e11c6 100644 --- a/renv/.gitignore +++ b/renv/.gitignore @@ -1,4 +1,11 @@ +library/ +local/ +cellar/ +lock/ +python/ +sandbox/ +staging/ * !.gitignore !activate.R -!settings.json \ No newline at end of file +!settings.json