R/zzz.R

#' @keywords internal
#'
#' @useDynLib imply, .registration = TRUE
#' @importFrom Rcpp sourceCpp
#' @importFrom methods setMethod
#' @importFrom stats sd var
#' @importFrom utils flush.console
"_PACKAGE"

## S7 methods defined at the top level of a package are recorded but not
## activated until the namespace is loaded, so they have to be registered here.
## Without this, print() and as.array() silently fall back to the array methods
.onLoad <- function (libname, pkgname)
{
    S7::methods_register()
    registerSparseMethods()
    registerPackedMethods()
    registerReductions()
}

Try the imply package in your browser

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

imply documentation built on Sept. 15, 2026, 5:09 p.m.