R/onattach.R

Defines functions .onAttach

#' @importFrom stats runif

.onAttach <- function(...) {
  
  # If interactive, hide message
  # o.w. check against rng seed.
  if (!interactive() || stats::runif(1) > 0.5){
    return()
  }
  
  # Display hint
  packageStartupMessage( "To see the user guide use `browseVignettes('DecisionAnalysis')`")
}

Try the DecisionAnalysis package in your browser

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

DecisionAnalysis documentation built on July 1, 2020, 6:19 p.m.