Learn R Programming

flyio (version 0.1.4)

export_rda: Write RDA files

Description

Write R data RDA file to anywhere from R

Usage

export_rda(..., file, FUN = save, data_source = flyio_get_datasource(),
  bucket = flyio_get_bucket(data_source), dir = flyio_get_dir(),
  delete_file = TRUE, show_progress = FALSE)

Arguments

...

R ojects need to be saved

file

path of the file to be written to

FUN

the function using which the file is to write

data_source

the name of the data source, if not set globally. s3, gcs or local

bucket

the name of the bucket, if not set globally

dir

the directory to store intermediate files

delete_file

logical. to delete the file to be uploaded

show_progress

logical. Shows progress of the upload operation.

Value

No output

Examples

Run this code
# NOT RUN {
# save RDA on Google Cloud Storage
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
export_rda(iris, mtcars, "rda-on-cloud.rda", dir = tempdir())
# }

Run the code above in your browser using DataLab