Skip to contents

See the original description in tools::R_user_dir.

Usage

R_user_dir(package, which = c("data", "config", "cache"))

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_R_user_dir = getFromNamespace("R_user_dir", "backports")

bp_R_user_dir("backports")
#> [1] "/opt/parallelcluster/shared/a2ai/tariq/i-016ba3ea303eaf464/R/backports"