aaronpeikert / reproducible-research

A Reproducible Data Analysis Workflow with R Markdown, Git, Make, and Docker
https://psyarxiv.com/8xzqy/
Creative Commons Attribution 4.0 International
122 stars 17 forks source link

fixing the date in Dockerfile #49

Closed aaronpeikert closed 4 years ago

aaronpeikert commented 4 years ago

ARG BUILD_DATE=2019-11-11 is ignored

aaronpeikert commented 4 years ago

Possible fix:

&& MRAN=https://mran.microsoft.com/snapshot/${BUILD_DATE} \
  && echo MRAN=$MRAN >> /etc/environment \
  && export MRAN=$MRAN \
  && echo "options(repos = c(CRAN='$MRAN'), download.file.method = 'libcurl')" >> /usr/local/lib/R/etc/Rprofile.site \

From: https://discuss.ropensci.org/t/creating-a-package-to-reproduce-an-academic-paper/1210/21