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.")
  })
}

Try the rex package in your browser

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

rex documentation built on March 28, 2026, 5:07 p.m.