R/prep_namespace.R

Defines functions namespace

#' @include lists.R

PREPS$namespace <- function(state, path = state$path, quiet) {
  path <- normalizePath(path)
  state$namespace <- try(parseNamespaceFile(
    basename(path),
    file.path(path, "..")
  ), silent = quiet)
  if(inherits(state$namespace, "try-error")) {
    warning("Prep step for namespace failed.")
  }
  state
}

Try the goodpractice package in your browser

Any scripts or data that you put into this service are public.

goodpractice documentation built on Aug. 31, 2022, 1:05 a.m.