export_file: Upload a file from the local system to cloud

Description Usage Arguments Value Examples

View source: R/export_file.R

Description

Write a local file to the cloud, S3 or GCS

Usage

1
2
export_file(localfile, bucketpath, data_source = flyio_get_datasource(),
  bucket = flyio_get_bucket(data_source), show_progress = FALSE, ...)

Arguments

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

Value

the filename and path of the file in the bucket

Examples

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)

flyio documentation built on Oct. 31, 2019, 4:59 p.m.