R/zzz.R

Defines functions .onLoad

## Register the knitr method only if knitr is available, so knitr can remain a
## suggested (not required) dependency.
.onLoad <- function(libname, pkgname) {
  if (requireNamespace("knitr", quietly = TRUE)) {
    registerS3method("knit_print", "orb_spec", knit_print.orb_spec,
                     envir = asNamespace("knitr"))
  }
  invisible()
}

Try the orbis package in your browser

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

orbis documentation built on Aug. 5, 2026, 9:08 a.m.