-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
2a009c2
commit 9361b8c
Showing
1 changed file
with
6 additions
and
24 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,32 +1,13 @@ | ||
FROM rocker/rstudio | ||
FROM jozefhajnala/devr | ||
|
||
ARG RHUB_EMAIL | ||
ARG RHUB_TOKEN | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -y --no-install-recommends \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
zlib1g-dev \ | ||
qpdf | ||
|
||
# Basics do build and check | ||
RUN Rscript -e "install.packages(c('jsonlite', 'nhlapi', 'knitr'))" | ||
|
||
# Full development suite with RStudio | ||
RUN Rscript -e "install.packages(c('roxygen2', 'devtools'))" | ||
|
||
# Data handling | ||
RUN Rscript -e "install.packages(c('poorman', 'data.table', 'dplyr'))" | ||
|
||
# Charting | ||
RUN Rscript -e "install.packages('ggplot2')" | ||
RUN Rscript -e "install.packages('igraph', repos = 'https://cloud.r-project.org', Ncpus = parallel::detectCores())" | ||
RUN Rscript -e "install.packages('highcharter')" | ||
RUN install2.r --repos http://cran.r-project.org \ | ||
igraph \ | ||
highcharter | ||
|
||
# R Hub for GH Actions | ||
RUN Rscript -e "install.packages('rhub')" | ||
RUN mkdir -p /home/rstudio/.local/share/rhub/ \ | ||
&& mkdir -p /root/.local/share/rhub/ \ | ||
&& echo '[email protected],37aa6a58c015433a9ffea2235052abbf' > /home/rstudio/.local/share/rhub/validated_emails.csv \ | ||
|
@@ -36,4 +17,5 @@ RUN mkdir -p /home/rstudio/.local/share/rhub/ \ | |
RUN git clone \ | ||
https://github.com/jozefhajnala/nhlapi.git \ | ||
/home/rstudio/nhlapi \ | ||
&& chown rstudio:rstudio /home/rstudio/nhlapi -R | ||
&& chown rstudio:rstudio /home/rstudio/nhlapi -R \ | ||
&& R CMD INSTALL /home/rstudio/nhlapi |