flyio_auth: Authenticate flyio
Description
Authenticate any of the cloud storage platforms to perform any I/O
Usage
flyio_auth(auth_list = "", data_source = flyio_get_datasource(),
scope = "https://www.googleapis.com/auth/devstorage.full_control",
awsprofile = "default")
Arguments
auth_list
path to the json file or the system environment name in case of gcs. For s3 a vector for access_key, secret_access_key, region (optional; default us-east-1) and session_id (optional); this could also be a single comma-separated string. If left blank, then for s3 it will pick from ~/.aws/credentials file
data_source
default to local. Possible options : gcs, s3, local. Case insensitive
scope
the scope of the auth if gcs. Default: https://www.googleapis.com/auth/devstorage.full_control
awsprofile
if auth_list = "", which profile to use from ~/.aws/credentials
Examples
Run this code# NOT RUN {
flyio_set_datasource("local")
flyio_auth()
# }
Run the code above in your browser using DataLab