
Last chance! 50% off unlimited learning
Sale ends in
Write a local file to the cloud, S3 or GCS
export_file(localfile, bucketpath, data_source = flyio_get_datasource(),
bucket = flyio_get_bucket(data_source), show_progress = FALSE, ...)
path of the file to be uploaded
path where the file needs to be uploaded, the file name can or cannot be present
the name of the data source, if not set globally. gcs or s3
the name of the bucket, if not set globally
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
# NOT RUN {
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
export_file("file-local.csv", "file-on-cloud.csv")
# }
Run the code above in your browser using DataLab