import_rda: Read RDA file

Description Usage Arguments Value Examples

View source: R/import_rda.R

Description

Read RData or rda file from anywhere

Usage

1
2
3
4
import_rda(file, FUN = load, data_source = flyio_get_datasource(),
  bucket = flyio_get_bucket(data_source), envir = globalenv(),
  dir = flyio_get_dir(), delete_file = TRUE, show_progress = FALSE,
  ...)

Arguments

file

path of the file to be read

FUN

the function using which the file is to be read

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

envir

the environment in which to import the objects

dir

the directory to store intermediate files

delete_file

logical. to delete the file downloaded

show_progress

logical. Shows progress of the download operation

...

other parameters for the FUN function defined above

Value

the output of the FUN function

Examples

1
2
3
4
5
6
7
## Not run: 
# Load RDA from Google Cloud
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
import_rda("rds-on-cloud.rda", dir = tempdir())

## End(Not run)

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