R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # .auth is created in R/auth.R
  # this is to insure we get an instance of gargle's AuthState using the
  # current, locally installed version of gargle
  utils::assignInMyNamespace(
    ".auth",
    gargle::init_AuthState(
      package = "ytanalyticsr",
      auth_active = TRUE,
      app = goa
    )
  )
}
jalvarado/ytAnalyticsR documentation built on Oct. 17, 2022, 3:04 p.m.