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

Handling dependencies, documentation, and modularity through an R package #96

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Test again to get Docker to work
  • Loading branch information
MansMeg committed May 1, 2020
commit c17d45394569631415c58c46881a6d6806953d4f
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ RUN apt-get install -y r-cran-cowplot
RUN apt-get install -y r-cran-bh
RUN apt-get install -y r-cran-remotes

RUN Rscript -e "update.packages(.libPaths()[1])"

RUN Rscript -e "update.packages(.libPaths()[1]);remotes::install_local("rpackage/")"

RUN install2.r --error --deps FALSE \
EnvStats remotes BH ggplot2 isoband \
Expand All @@ -33,11 +32,14 @@ COPY utils utils/
COPY rpackage rpackage/
COPY *.r ./

RUN Rscript -e "remotes::install_local("rpackage/")"

RUN mkdir results
RUN mkdir figures
RUN mkdir web
RUN touch Rplots.pdf
RUN chmod -R a+rwx data results figures web Rplots.pdf
RUN touch Rplots.pdf
RUN mkdir -p /usr/local/lib/R/site-library
RUN chmod 777 /usr/local/lib/R/site-library

CMD Rscript base.r base