R/zzz.R

Defines functions .onLoad

# environment to store API tokens
.xmart_env <- new.env(parent = emptyenv())

# user agent
ua <- httr::user_agent("https://github.com/caldwellst/xmart4")

.onLoad <- function(lib, pkg) {
  xmart4_api <<- memoise::memoise(xmart4_api)
}
caldwellst/xmart4 documentation built on May 14, 2022, 11:11 p.m.