Skip to content

Commit

Permalink
install the matching version of roxygen2 before checking a package in…
Browse files Browse the repository at this point in the history
… the Docker
  • Loading branch information
ThierryO committed Jul 14, 2024
1 parent 865d84b commit 6f5a189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
maintainer="Thierry Onkelinx <[email protected]>"

## for apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true

## Install nano
RUN apt-get update \
Expand Down
5 changes: 5 additions & 0 deletions docker/entrypoint_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ if [ $? -ne 0 ]; then
exit 1
fi

# install the roxygen2 version mentions in the DESCRIPTION
ROXYGEN_LINE=$(cat DESCRIPTION | grep "^RoxygenNote:")
RO_VERSION=${ROXYGEN_LINE#*: }
Rscript -e "remotes::install_version('roxygen2', version = '$RO_VERSION')"

echo '\nChecking the package...\n'
Rscript --no-save --no-restore -e 'checklist::check_package()'
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 6f5a189

Please sign in to comment.