Export portable data for custom analyses.
Usage
rave_export(x, path, ...)
# Default S3 method
rave_export(x, path, format = c("rds", "yaml", "json"), ...)
# S3 method for class 'rave_prepare_subject_raw_voltage_with_epoch'
rave_export(x, path, zip = FALSE, ...)
# S3 method for class 'rave_prepare_subject_voltage_with_epoch'
rave_export(x, path, zip = FALSE, ...)
# S3 method for class 'rave_prepare_power'
rave_export(x, path, zip = FALSE, ...)
Examples
x <- "my data"
path <- tempfile()
rave_export(x, path)
#> [1] "/private/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/RtmpN1XDVO/file17ff68dd1833"
readRDS(path)
#> [1] "my data"
if (FALSE) { # \dontrun{
# Needs demo subject
path <- tempfile()
x <- prepare_subject_power("demo/DemoSubject")
# Export power data to path
rave_export(x, path)
} # }