From 41ba3d59ac47eef87a8bdab6efd8e6105306eba4 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Sun, 19 Sep 2021 14:39:02 -0700 Subject: [PATCH] install compatible testthat version --- r-dsci-100/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/r-dsci-100/Dockerfile b/r-dsci-100/Dockerfile index 2a66c6d8cc..89f7e60c4a 100644 --- a/r-dsci-100/Dockerfile +++ b/r-dsci-100/Dockerfile @@ -14,8 +14,11 @@ RUN conda install --quiet --yes -c conda-forge \ r-kknn=1.3.* \ r-rpostgres=1.3.* -# Install testthat version 2.3 -RUN Rscript -e "devtools::install_version('testthat', version = '2.3.2', repos = 'http://cran.us.r-project.org')" +# we can't use testthat 2.3 because of weird "no testthat_print" function error https://github.com/r-lib/rlang/issues/1112 +# we can't use testthat 3.0.4 (current release) because it doesn't include the fix to make interactive tests error https://github.com/r-lib/testthat/pull/1443 +# so we will install testthat from a specific commit hash +# old code to do 2.3.2 : RUN Rscript -e "devtools::install_version('testthat', version = '2.3.2', repos = 'http://cran.us.r-project.org')" +RUN Rscript -e "remotes::install_github("r-lib/testthat@4fcc0c7152704c5c2049441920d78d9dfe448836") # Install the palmerpenguins dataset RUN Rscript -e "devtools::install_github('allisonhorst/palmerpenguins@v0.1.0')"