Skip to contents

Create a local cache directory for a package

Usage

pkgCacheDir(pkg)

Arguments

pkg

character(1). Package name.

Value

character(1). Directory path.

Details

Requires the tools package to be installed.

Note

Updated 2023-09-28.

See also

Examples

dir <- pkgCacheDir(pkg = "AcidBase")
#> Error in vapply(X = X, FUN = FUN, FUN.VALUE = logical(1L), ..., USE.NAMES = useNames): formal argument "USE.NAMES" matched by multiple actual arguments
print(dir)
#> function (path = ".", pattern = NULL, all.files = FALSE, full.names = FALSE, 
#>     recursive = FALSE, ignore.case = FALSE, include.dirs = FALSE, 
#>     no.. = FALSE, fixed = FALSE) 
#> .Internal(list.files(path, pattern, all.files, full.names, recursive, 
#>     ignore.case, include.dirs, no.., fixed))
#> <bytecode: 0xb54c36190>
#> <environment: namespace:base>