Skip to content

Commit 27a7285

Browse files
authored
Merge pull request #75 from nmfs-opensci/fix-install-to-site-lib
Update install.R
2 parents 8029496 + 79ab915 commit 27a7285

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

images/asar/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ RUN unset TEXMFHOME && \
3535
wrapfig \
3636
draftwatermark \
3737
luatexbase \
38-
selnolig
38+
selnolig \
39+
lastpage \
40+
tagpdf \
41+
luamml
3942

4043
# Install DejaVu Sans Font
4144
RUN apt-get update && \

images/asar/install.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#! /usr/local/bin/Rscript
22
# install R dependencies
33

4+
# Check if the first library path is inside /home
5+
install_lib <- .libPaths()[1]
6+
if (grepl("^/home", install_lib)) {
7+
stop("Error: Packages are being installed to /home, which will be removed in the final image. Exiting.", call. = FALSE)
8+
}
9+
410
# to match rocker/verse:4.4 used in py-rocker-base
511
# look up the date that the Rocker image was created
612
repo <- "https://p3m.dev/cran/__linux__/jammy/2025-04-10"

0 commit comments

Comments
 (0)