R/prep_rcmdcheck.R

Defines functions rcmdcheck

#' @include lists.R
#' @importFrom rcmdcheck rcmdcheck

PREPS$rcmdcheck <- function(state, path = state$path, quiet) {
  path <- normalizePath(path)
  state$rcmdcheck <- try(rcmdcheck(path, quiet = quiet), silent = quiet)
  if(inherits(state$rcmdcheck, "try-error")) {
    warning("Prep step for rcmdcheck 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.