Description Usage Arguments Value Examples
Write a local file to the cloud, S3 or GCS
1 2 | export_file(localfile, bucketpath, data_source = flyio_get_datasource(),
bucket = flyio_get_bucket(data_source), show_progress = FALSE, ...)
|
localfile |
path of the file to be uploaded |
bucketpath |
path where the file needs to be uploaded, the file name can or cannot be present |
data_source |
the name of the data source, if not set globally. gcs or s3 |
bucket |
the name of the bucket, if not set globally |
show_progress |
logical. Shows progress of the upload operation. |
... |
other parameters for gcs_upload or aws.s3::put_object |
the filename and path of the file in the bucket
1 2 3 4 5 6 | ## Not run:
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
export_file("file-local.csv", "file-on-cloud.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.