R/zzz.r

Defines functions onLoad

#' hrr provides a simple function, \code{\link{hr}}, to compose and print beautiful horizontal rules.
#'
#' @section Package options:
#'
#' It uses the following \code{options} to configure behaviour:
#' \itemize{
#'   \item \code{hrr.symbol}: default character symbol used by \code{\link{hr}} function
#' }
#' @docType package
#' @name hrr
NULL

.onLoad <- function(libname, pkgname) {
  ops <- options()
  hrr_ops <- list(
    hrr.symbol = '#'
  )
  to_set <- !(names(hrr_ops) %in% names(ops))
  if (any(to_set)) options(hrr_ops[to_set])
  invisible()
}

Try the hrr package in your browser

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

hrr documentation built on May 29, 2017, 9:50 a.m.