View source: R/cloud-storage.R
download_cloud_file | R Documentation |
Download object from the cloud storage to a local file
download_cloud_file(name, provider, options, file = name)
name |
the name of the object in the storage bucket. |
provider |
cloud provider to use, either "gcs" or "aws" |
options |
named list with cloud provider options, see details |
file |
a file-path (character) where the object will be saved. Default is the object name. |
the file path
# Google Cloud Services
## Not run:
authentication_details <- readLines("location_of_json_file.json")
download_cloud_file(
name = "timor-landings-v2_metadata__20210326084600_54617b3__.json",
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.