powered by
Write R data RDS file to anywhere from R
export_rds(x, file, FUN = saveRDS, data_source = flyio_get_datasource(), bucket = flyio_get_bucket(data_source), dir = flyio_get_dir(), delete_file = TRUE, show_progress = FALSE, ...)
variable name
path of the file to be written to
the function using which the file is to write
the name of the data source, if not set globally. s3, gcs or local
the name of the bucket, if not set globally
the directory to store intermediate files
logical. to delete the file to be uploaded
logical. Shows progress of the upload operation.
other parameters for the FUN function defined above
if FUN returns anything
# NOT RUN { # save RDS on Google Cloud flyio_set_datasource("gcs") flyio_set_bucket("your-bucket-name") export_rds(iris, "iris-on-cloud.rds", saveRDS, dir = tempdir()) # }
Run the code above in your browser using DataLab