R/zzz.R

Defines functions .onAttach

.onAttach <- function(lib, pkg) { # nolint
  withr::with_preserve_seed({
  if (!interactive() || stats::runif(1) > 0.1) return()

  packageStartupMessage("Welcome to rex, the friendly regular expression helper!\n",
                        "Use 'rex_mode()' to toggle code completion for rex shortcuts and functions.")
  })
}
kevinushey/rex documentation built on March 14, 2024, 4:17 a.m.