Skip to content

Commit

Permalink
Install pak into system library
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed May 7, 2024
1 parent 07f712b commit 808d73c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ RUN curl -L https://rig.r-pkg.org/deb/rig.gpg -o /etc/apt/trusted.gpg.d/rig.gpg

# Because $HOME gets masked by GHA with the host $HOME
ENV R_LIBS_USER=/opt/R/current/lib/R/site-library
RUN rig add 4.4.0
# Don't install pak. Rig installs it into the user lib, but we want it in the system lib
RUN rig add 4.4.0 --without-pak
# Install pak into the system lib
RUN /opt/R/current/bin/R -q -e 'install.packages("pak", lib = .Library)'

# Download webR and configure for LLVM flang
RUN git clone https://github.com/r-wasm/webr.git /opt/webr
Expand Down

0 comments on commit 808d73c

Please sign in to comment.