pkgCacheDir: Create a local cache directory for a package

View source: R/pkgCacheDir.R

pkgCacheDirR Documentation

Create a local cache directory for a package

Description

Create a local cache directory for a package

Usage

pkgCacheDir(pkg)

Arguments

pkg

character(1). Package name.

Details

Requires the tools package to be installed.

Value

character(1). Directory path.

Note

Updated 2023-09-28.

See Also

  • tools::R_user_dir().

  • rappdirs::user_cache_dir().

  • Sys.getenv("R_USER_CACHE_DIR").

  • Sys.getenv("XDG_CACHE_HOME").

  • BiocFileCache package.

Examples

dir <- pkgCacheDir(pkg = "AcidBase")
print(dir)

acidgenomics/r-acidbase documentation built on Jan. 12, 2024, 3:56 a.m.