Check pkg_root/subdir

pkg_checkroot_subdir(
  dir = getwd(),
  subdir = c("R", "data", "data_raw", "man", "tests", file.path("tests", "testthat"),
    "vignettes")
)

Arguments

dir

Character string. Directory.

subdir

Character string. Sub directory.

Author

Ivan Jacob Agaloos Pesigan

Examples

if (FALSE) { pkg_checkroot_subdir( dir = getwd() ) }