R/utils.R

Defines functions display release_questions

# function used by devtools::release()
# gramr is avaible from https://github.com/ropenscilabs/gramr
release_questions <- function() { # nocov start
  c(
    "Did you ran `gramr::check_project(exclude_chunks = TRUE)`"
  )
} # nocov end

#' @noRd
#' @importFrom utils flush.console
#' @importFrom assertthat assert_that is.flag noNA
display <- function(verbose, message, linefeed = TRUE) {
  assert_that(is.flag(verbose), noNA(verbose))
  assert_that(is.flag(linefeed), noNA(linefeed))

  if (verbose) {
    message(message, appendLF = linefeed)
    flush.console()
  }
  return(invisible(NULL))
}

Try the git2rdata package in your browser

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

git2rdata documentation built on March 18, 2022, 5:06 p.m.