To use a Google Cloud Storage board, you first need a Google Cloud Storage account, a Google Storage bucket, and an access token or the Google Cloud SDK properly installed and configured. You can sign-up and create these from https://console.cloud.google.com

board_register_gcloud(
  name = "gcloud",
  bucket = Sys.getenv("GCLOUD_STORAGE_BUCKET"),
  token = NULL,
  cache = board_cache_path(),
  path = NULL,
  ...
)

board_gcloud(
  name,
  bucket = Sys.getenv("GCLOUD_STORAGE_BUCKET"),
  token = NULL,
  cache = NULL,
  ...
)

Arguments

name

Board name, used to identify board in actions that affect multiple boards.

bucket

The name of the Google Cloud Storage bucket. Defaults to the GCLOUD_STORAGE_BUCKET environment variable.

token

The access token of the Google Cloud Storage container. Generally, it's best to leave this as NULL, and rely on the installed Google Cloud SDK to handle authentication.

If you do want to use an access token, you can retrieve it from https://developers.google.com/oauthplayground. You will need to authorize the "Google Storage API v1" scope.

cache

The local folder to use as a cache, defaults to board_cache_path().

path

Subdirectory within url

...

Additional parameters stored in the board object.

See also

board_register

Examples

if (FALSE) { # the following example requires the Google Cloud SDK to be configured board_register_gcloud(container = "gcloudcontainer") }