Defines functions .onAttach

.onAttach <- function(...) {
  if (!interactive() || stats::runif(1) > 0.1) return()

  tips <- c(
    "Learn more about inferr at http://github.com/rsquaredacademy/inferr/.",
    "Use suppressPackageStartupMessages() to eliminate package startup messages.",
    "Need help getting started with statistical inference? Visit: http://www.rsquaredacademy.com/.",
    "Check out our interactive app for quick data exploration. Visit: http://www.rsquaredlabs.com:3838/explorer/."

  tip <- sample(tips, 1)
  packageStartupMessage(paste(strwrap(tip), collapse = "\n"))

Try the inferr package in your browser

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

inferr documentation built on May 2, 2019, 6:23 a.m.