R/options.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  attempt <- try(
    googleAuthR::gar_attach_auto_auth(
      "https://www.googleapis.com/auth/cloud-platform",
      environment_var = "GCE_AUTH_FILE"
    )
  )
  if (inherits(attempt, "try-error")) {
    warning("Tried to auto-authenticate but failed.")
  }

  invisible()
}

Try the googleCloudRunner package in your browser

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

googleCloudRunner documentation built on March 18, 2022, 8 p.m.