Skip to content

Commit 1c76a81

Browse files
committed
R CMD testing on Linux
Signed-off-by: Peter Solymos <psolymos@gmail.com>
1 parent fcee169 commit 1c76a81

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
^RELEASE\.R$
1616
^\.gitpod\.yml$
1717
^\.gitpod\.Dockerfile$
18+
^\.testing\.Dockerfile$

.testing.Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
ARG R_VER=${R_VER:-rocker/r-base}
3+
FROM ${R_VER}
4+
RUN apt update -y && apt upgrade -y && apt install -y pandoc
5+
RUN install.r yaml jsonlite
6+
COPY . ./rconfig
7+
RUN R CMD build rconfig
8+
# RUN R CMD check --as-cran rconfig_*.tar.gz
9+
10+
# docker build --build-arg R_VER=rocker/r-base -t crancheck -f .testing.Dockerfile --progress=plain .
11+
# docker run -it --rm crancheck bash
12+
# R CMD check --as-cran --no-manual rconfig_*.tar.gz

0 commit comments

Comments
 (0)