.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.")
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.