R/loading.R
load_si_data.Rdload_si_data first checks to see if file must be downloaded from the
jefferislab.org website (because it is missing or out of date). It then loads
the file into the current R session.
load_si_data(data_name, type = c("auto", "data", "db", "bigmat", "ff", "plain"), overwrite = FALSE, ...)
| data_name | the name of the file to load. |
|---|---|
| type | either |
| overwrite | whether to overwrite an existing file (default:
|
| ... | extra arguments to pass to |
For rda files, a character vector of the names of objects created,
invisibly or NULL if nothing loaded. For rds, bigmat or ff files,
the object itself. Otherwise, the path to the downloaded file.
Note that bigmat and ff objects will be loaded using
the function fc_attach_bigmat.
# NOT RUN { mydata=load_si_data("mydata.rds") # note that rda files are loaded into the global environment. load_si_data("mydata.rda") bigmat=load_si_data("data.desc") # }