Convenience wrapper around the rprojroot::is_pkgdown_project
root criterion. Note that it will by default only return
TRUE
for the root of a package directory and the pkgdown
subdirectory, not other subdirectories.
Arguments
- path
Path of the R package directory to check. A character scalar. Defaults to the current working directory.
- check_parent_dirs
Whether or not to also check
path
's parent directories (up until the filesystem root) for a pkgdown setup. Settingcheck_parent_dirs = TRUE
guarantees thatTRUE
is returned for all subdirectories of an R package that has pkgdown set up.
See also
Other R package functions:
is_pkg_cran()
,
is_pkg_dir()
,
is_pkg_installed()
,
ls_pkg()
,
use_pkg()
Examples
pal::is_pkgdown_dir()
#> [1] FALSE
pal::is_pkgdown_dir(fs::path_package("pal"))
#> [1] FALSE