View source: R/cloud-storage.R
cloud_storage_authenticate | R Documentation |
Usually used internally by other functions
cloud_storage_authenticate(provider, options)
provider |
cloud provider to use, either "gcs" or "aws" |
options |
named list with cloud provider options, see details |
For Google Cloud Services ("gcs") options must be a list with the field
service_account_key
with the contents of the authentication json file you
have downloaded from your Google Project.
This function uses googleCloudStorageR::gcs_auth under the hood to authenticate.
# Google Cloud Services
## Not run:
authentication_details <- readLines("location_of_json_file.json")
cloud_storage_authenticate(
provider = "gcs",
options = list(
service_account_key = authentication_details,
bucket = "my-bucket"
)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.