Skip to content

Commit

Permalink
R CMD testing on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Feb 11, 2023
1 parent fcee169 commit 1c76a81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
^RELEASE\.R$
^\.gitpod\.yml$
^\.gitpod\.Dockerfile$
^\.testing\.Dockerfile$
12 changes: 12 additions & 0 deletions .testing.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
ARG R_VER=${R_VER:-rocker/r-base}
FROM ${R_VER}
RUN apt update -y && apt upgrade -y && apt install -y pandoc
RUN install.r yaml jsonlite
COPY . ./rconfig
RUN R CMD build rconfig
# RUN R CMD check --as-cran rconfig_*.tar.gz

# docker build --build-arg R_VER=rocker/r-base -t crancheck -f .testing.Dockerfile --progress=plain .
# docker run -it --rm crancheck bash
# R CMD check --as-cran --no-manual rconfig_*.tar.gz

0 comments on commit 1c76a81

Please sign in to comment.