R/is_package.r

Defines functions is_package

Documented in is_package

#' Is the current project a package?
#'
#' Very simple wrapper to see if the current project is a package.
#'
#' @return `logical`
#'
is_package <- function() {
    safe_field <- purrr::safely(desc::desc_has_fields, otherwise = FALSE)
    res <- safe_field("Package")
    res[["result"]]
}
baslat/sak documentation built on April 14, 2025, 4:14 p.m.