-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
I am trying to use {pak} with a shared mount so users associated with a group can use same cache across sessions/instances similar to how {renv} can be configured.
since $USER is part of rstudio group there shouldn't be an issue for rw to files inside the pkgcache directory where {pak} is writing to
is there something I need to add to the pak call to resolve this? is there something similar to $RENV_CACHE_USER in pak that can manage who is the install user at runtime?
> pak::cache_list()
Error:
! error in pak subprocess
Caused by error in `filelock::lock(lockfile, exclusive = exclusive, ...)`:
! Cannot open lock file: Permission denied
Type .Last.error to see the more details.
U1037187@pipeline-669380:~$ groups $USER
U1037187 : U1037187 root sudo rstudio
U1037187@pipeline-669380:~$ echo $R_PKG_CACHE_DIR
/cloud-home/egds/.cache
U1037187@pipeline-669380:~$ ls /cloud-home/egds/.cache/R/pkgcache -la
total 20
drwxrwxr-x 5 egds rstudio 6144 Sep 4 20:50 .
drwxrwxr-x 4 egds rstudio 6144 Sep 4 20:50 ..
drwxrwxr-x 2 egds rstudio 6144 Sep 4 20:50 _metadata
drwxrwxr-x 2 egds rstudio 6144 Sep 4 20:50 pkg
drwxrwxr-x 7 egds rstudio 6144 Sep 4 20:50 sysreqs
U1037187@pipeline-669380:~$ ls /cloud-home/egds/.cache/R -la
total 16
drwxrwxr-x 4 egds rstudio 6144 Sep 4 20:50 .
drwxrwxr-x 4 egds rstudio 6144 Sep 4 20:20 ..
drwxrwxr-x 5 egds rstudio 6144 Sep 4 20:50 pkgcache
drwxrwxr-x 3 egds rstudio 6144 Sep 4 15:28 renv
U1037187@pipeline-669380:~$ getfacl /cloud-home/egds/.cache/R/pkgcache
getfacl: Removing leading '/' from absolute path names
# file: cloud-home/egds/.cache/R/pkgcache
# owner: egds
# group: rstudio
user::rwx
group::rwx
other::r-x
Metadata
Metadata
Assignees
Labels
No labels