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/acidbase documentation built on Jan. 26, 2024, 4:26 p.m.