is_pkg_dir | R Documentation |
Convenience wrapper around the rprojroot::is_r_package
root criterion. Note that it will by default only return TRUE
for the
root of a package directory, not its subdirectories.
is_pkg_dir(path = ".", check_parent_dirs = FALSE)
path |
Path of the directory to check. A character scalar. Defaults to the current working directory. |
check_parent_dirs |
Whether or not to also check |
TRUE
if path
is the root (if check_parent_dirs = FALSE
) or a (sub)directory directory (if check_parent_dirs = TRUE
) of an R package,
FALSE
otherwise.
Other R package functions:
is_pkg_cran()
,
is_pkg_installed()
,
is_pkgdown_dir()
,
ls_pkg()
,
use_pkg()
pal::is_pkg_dir()
pal::is_pkg_dir(fs::path_package("utils"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.