is_pkgdown_dir | R Documentation |
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.
is_pkgdown_dir(path = ".", check_parent_dirs = FALSE)
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 |
TRUE
if pkgdown is set up for path
, FALSE
otherwise.
Other R package functions:
is_pkg_cran()
,
is_pkg_dir()
,
is_pkg_installed()
,
ls_pkg()
,
use_pkg()
pal::is_pkgdown_dir()
pal::is_pkgdown_dir(fs::path_package("pal"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.