Skip to content

changing the default package cache dir using env var? #91

@achubaty

Description

@achubaty

Setting env var R_REQUIRE_PKG_CACHE=/mnt/shared_cache/Require/packages does not properly create the directory structure of the default package cache directory.
Specifically, I would expect that the R version (4.3 here) would be automatically appended to the path, rather than relying on the user to actively maintain and update their ~/.Renviron file to manually specify the R version (which also prevents multiple versions of R being used on the same machine).

d> getOption("Require.RPackageCache")
[1] "default"
d> RequirePkgCacheDir(FALSE)
  /home/achubaty/.cache/R/Require/packages/4.3 
"/home/achubaty/.cache/R/Require/packages/4.3" 
d> Require::getOptionRPackageCache()
[1] "/mnt/shared_cache/Require/packages"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions