File: zzz.r

package info (click to toggle)
r-cran-ggplot2 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,412 kB
  • sloc: sh: 9; makefile: 1
file content (14 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.onAttach <- function(...) {
  if (!interactive() || stats::runif(1) > 0.1) return()

  tips <- c(
    "Need help? Try the ggplot2 mailing list: http://groups.google.com/group/ggplot2.",
    paste("Find out what's changed in ggplot2 with\n",
      "news(Version == \"", utils::packageVersion("ggplot2"),
      "\", package = \"ggplot2\")", sep = ""),
    "Use suppressPackageStartupMessages to eliminate package startup messages."
  )

  tip <- sample(tips, 1)
  packageStartupMessage(tip)
}