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/w5/_8wgjw3j5cg6mgrth3s2kg9m0000gn/T/RtmpO7flF2/file18ca415992a2"
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)
} # }