.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
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.