packages {pkgload} | R Documentation |
All functions search recursively up the directory tree from the input path until they find a DESCRIPTION file.
pkg_path(path = ".")
pkg_name(path = ".")
pkg_desc(path = ".")
pkg_version(path = ".")
pkg_ns(path = ".")
path |
Path to a package, or within a package. |
pkg_path
: Return the normalized package path.
pkg_name
: Return the package name.
pkg_desc
: Return the package DESCRIPTION as a desc::desc()
object.
pkg_version
: Return the package version.
pkg_ns
: Return the package namespace.