Skip to content

Commit

Permalink
install compatible testthat version
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell authored Sep 19, 2021
1 parent e827876 commit 41ba3d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions r-dsci-100/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]')"
Expand Down

0 comments on commit 41ba3d5

Please sign in to comment.