Skip to content

Commit

Permalink
Change install2.r calls to specify the Posit package manager to ensur…
Browse files Browse the repository at this point in the history
…e we're using the latest r packages. Also adds option to stop on error
  • Loading branch information
anthonysena committed Feb 26, 2024
1 parent e188551 commit 8f0318b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y openjdk-11-jdk liblzma-dev libbz2-dev l
&& rm -rf /var/lib/apt/lists/*

# install utility R packages
RUN install2.r \
RUN install2.r --error --skipinstalled --repos "https://packagemanager.posit.co/cran/latest" \
openssl \
httr \
xml2 \
Expand All @@ -23,9 +23,9 @@ RUN --mount=type=secret,id=build_github_pat \
&& cp /tmp/Renviron /usr/local/lib/R/etc/Renviron

# install useful R libraries to help RStudio users to create/use their own GitHub Personal Access Token
RUN install2.r \
usethis \
gitcreds \
RUN install2.r --error --skipinstalled --repos "https://packagemanager.posit.co/cran/latest" \
usethis \
gitcreds \
&& rm -rf /tmp/download_packages/ /tmp/*.rds

# create Python virtual environment used by the OHDSI PatientLevelPrediction R package
Expand All @@ -38,23 +38,23 @@ EOF

# install shiny and other R packages used by the OHDSI PatientLevelPrediction R package viewPLP() function
# and additional model related R packages
RUN install2.r \
DT \
markdown \
plotly \
shiny \
shinycssloaders \
shinydashboard \
shinyWidgets \
xgboost \
RUN install2.r --error --skipinstalled --repos "https://packagemanager.posit.co/cran/latest" \
DT \
markdown \
plotly \
shiny \
shinycssloaders \
shinydashboard \
shinyWidgets \
xgboost \
&& rm -rf /tmp/download_packages/ /tmp/*.rds

# install the jdbc drivers for database access using the OHDSI DatabaseConnector R package
ENV DATABASECONNECTOR_JAR_FOLDER="/opt/hades/jdbc_drivers"
RUN R -e "DatabaseConnector::downloadJdbcDrivers('all');"

# Install Rserve server and client
RUN install2.r \
RUN install2.r --error --skipinstalled --repos "https://packagemanager.posit.co/cran/latest" \
Rserve \
RSclient \
&& rm -rf /tmp/download_packages/ /tmp/*.rds
Expand Down

0 comments on commit 8f0318b

Please sign in to comment.