Skip to content

Commit 41ba3d5

Browse files
install compatible testthat version
1 parent e827876 commit 41ba3d5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

r-dsci-100/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ RUN conda install --quiet --yes -c conda-forge \
1414
r-kknn=1.3.* \
1515
r-rpostgres=1.3.*
1616

17-
# Install testthat version 2.3
18-
RUN Rscript -e "devtools::install_version('testthat', version = '2.3.2', repos = 'http://cran.us.r-project.org')"
17+
# we can't use testthat 2.3 because of weird "no testthat_print" function error https://github.com/r-lib/rlang/issues/1112
18+
# 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
19+
# so we will install testthat from a specific commit hash
20+
# 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')"
21+
RUN Rscript -e "remotes::install_github("r-lib/testthat@4fcc0c7152704c5c2049441920d78d9dfe448836")
1922
2023
# Install the palmerpenguins dataset
2124
RUN Rscript -e "devtools::install_github('allisonhorst/palmerpenguins@v0.1.0')"

0 commit comments

Comments
 (0)