# ---- Native format (RAVE legacy) ------------------------
project <- as_rave_project("demo", strict = FALSE)
format(project)
project$path
project$subjects()
# Non-standard project locations (native format)
as_rave_project("demo", strict = FALSE,
parent_path = "~/Downloads")
# ---- BIDS format ----------------------------------------
project <- as_rave_project("demo@bids:ds001", strict = FALSE)
format(project)
project$path
# BIDS format, given the parent folder; this example requires
# 'bidsr' sample data. Run `bidsr::download_bids_examples()` first.
examples <- bidsr::download_bids_examples(test = TRUE)
if(!isFALSE(examples)) {
project <- as_rave_project(
"audiovisual@bids", strict = FALSE,
parent_path = file.path(examples, "ieeg_epilepsy_ecog"))
# RAVE processed data is under BIDS dirivative folder
project$path
# "audiovisual@bids:ieeg_epilepsy_ecog"
format(project)
}
Run the code above in your browser using DataLab