inst/templates/__init__.r

#' @export
box::use(
    . / add[...],
    . / init[...],
    . / install[...],
    . / remove[...],
    . / upgrade[...]
)

.on_load <- function(ns) {
    box::use(cli[cli_h1, cli_div])
    module_name <- box::name()
    cli_div(theme = list(span.emph = list(color = "orange")))
    cli_h1(
        'Loading module "{.emph {module_name}}"'
    )
    cli::cli_alert_info(
        "{.emph {module_name}} exposes the following functions: add, grab, init, install, remove, upgrade"
    )
}
ElianHugh/boxingtape documentation built on Feb. 13, 2021, 12:48 a.m.