Nothing
.onLoad <- function(libname, pkgname) {
# adapted from https://github.com/r-lib/devtools/blob/master/R/zzz.R
teal_default_options <- list(teal.show_js_log = FALSE)
op <- options()
toset <- !(names(teal_default_options) %in% names(op))
if (any(toset)) options(teal_default_options[toset])
options("shiny.sanitize.errors" = FALSE)
# Set up the teal logger instance
teal.logger::register_logger("teal")
invisible()
}
.onAttach <- function(libname, pkgname) {
packageStartupMessage(
"\nYou are using teal version ",
# `system.file` uses the `shim` of `system.file` by `teal`
# we avoid `desc` dependency here to get the version
read.dcf(system.file("DESCRIPTION", package = "teal"))[, "Version"]
)
}
# This one is here because setdiff_teal_slice should not be exported from teal.slice.
setdiff_teal_slices <- getFromNamespace("setdiff_teal_slices", "teal.slice")
# This one is here because it is needed by c.teal_slices but we don't want it exported from teal.slice.
coalesce_r <- getFromNamespace("coalesce_r", "teal.slice")
# all *Block objects are private in teal.reporter
RcodeBlock <- getFromNamespace("RcodeBlock", "teal.reporter") # nolint: object_name.
# Use non-exported function(s) from teal.code
# This one is here because lang2calls should not be exported from teal.code
lang2calls <- getFromNamespace("lang2calls", "teal.code")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.