R/zzz.R

Defines functions .onLoad

Documented in .onLoad

#' saspy package
#'
#' @keywords internal
saspy <- NULL

#' sasr Environment
#'
#' @keywords internal
.sasr_env <- new.env()

#' onLoad Function
#'
#' @keywords internal
.onLoad <- function(libname, pkgname) {
  options("sascfg" = "sascfg_personal.py")
  saspy <<- import("saspy", delay_load = TRUE)
  if (requireNamespace("knitr", quietly = TRUE)) {
    knitr::knit_engines$set(sas = sas_engine)
  }
}

Try the sasr package in your browser

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

sasr documentation built on April 3, 2025, 11:24 p.m.