packagePath: Base path of package

View source: R/packagePath.R

packagePathR Documentation

Base path of package

Description

Base path of package (with DESCRIPTION file), per default at current getwd. Derived from devtools::package_file

Usage

packagePath(path = ".", file = NULL, warnonly = FALSE)

Arguments

path

Path to (or below) package directory. DEFAULT: "."

file

Optional file name to be added to path. DEFAULT: NA

warnonly

Logical: if no part of the path is a package, give a warning and return the original input instead of stopping with an error. DEFAULT: FALSE

Value

Path character string

Author(s)

Berry Boessenkool, berry-b@gmx.de, Sep 2017

See Also

getwd

Examples

# packagePath() # may fail on cran checks


brry/berryFunctions documentation built on Feb. 21, 2024, 2:20 p.m.