R/zzz.R

Defines functions .onLoad

#' paste.output package
#' 
#' @section Package options:
#' 
#' \describe{
#' 
#' \item{\code{paste.output.verbose}}{Option to get addin verbose in terms of
#' giving informative output to console.}
#' 
#' \item{\code{paste.output.save.paste}}{Option to save active editor after
#' pasting an output.}
#' 
#' }
#' @importFrom R6 R6Class
#' @keywords internal
"_PACKAGE"

.onLoad <- function(libname, pkgname) { # nocov start
  op <- options()
  op.paste.output <- list(
    paste.output.verbose = TRUE,
    paste.output.save.paste = TRUE
  )
  toset <- !(names(op.paste.output) %in% names(op))
  if(any(toset)) options(op.paste.output[toset])
  invisible()
} # nocov end
strboul/paste.output documentation built on May 25, 2019, 11:32 p.m.