Package File Path Location

Usage

ploc(base, dir = getOption("dir"))

Arguments

base
The base name (package name).
dir
The location to place base. This can be set in the user's options in the ‘.Rprofile’; for example: options(dir = file.path(Sys.getenv("USERPROFILE"), "GitHub")).

Package File Path Location

Package File Path Location

Value

Returns a concatenated file path using dir and base.

Description

A wrapper for file.path that allows the user to (1) set a package directory location and (2) supply a package name and a file path is constructed. This is the inverse of basename + dirname.

Examples

## <strong>Not run</strong>: # options(dir = file.path(Sys.getenv("USERPROFILE"), "Desktop")) # pax(ploc("DELETE_ME")) # ## <strong>End(Not run)</strong>