Skip to contents

Validates datom repository structure. Used internally and by dpbuild.

Usage

is_valid_datom_repo(
  path,
  checks = c("all", "git", "datom", "renv"),
  verbose = FALSE
)

Arguments

path

Path to evaluate.

checks

Which checks to perform. Any combination of "all", "git", "datom", "renv".

verbose

If TRUE, prints which tests passed/failed.

Value

TRUE or FALSE.

Examples

# A plain directory is not a valid datom repository.
tmp <- tempfile("datom_valid_")
dir.create(tmp)
is_valid_datom_repo(tmp)
#> [1] FALSE
unlink(tmp, recursive = TRUE)