R/onAttach.R

Defines functions .onAttach

.onAttach <- function(...) {
  if (!interactive()){return()}
  
  # Create a list of helpful tips
  pkg_hints = c(
    "To see the user guides use `browseVignettes('optiSel')`"
  )
  
  # Randomly pick one hint
  startup_hint = sample(pkg_hints, 1)
   
  # Display hint
  packageStartupMessage(paste(strwrap(startup_hint), collapse = "\n"))
}

Try the optiSel package in your browser

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

optiSel documentation built on Jan. 16, 2021, 5:30 p.m.