Learn R Programming

ieegio (version 0.0.4)

ieegio_sample_data: Download sample files

Description

Download sample files

Usage

ieegio_sample_data(file, test = FALSE, cache_ok = TRUE)

Value

When test is false, returns downloaded file path (character); when test is true, returns whether the expected sample exists (logical).

Arguments

file

file to download; set to NULL to view all possible files

test

test whether the sample file exists instead of downloading them; default is FALSE

cache_ok

whether to use cache

Examples

Run this code

# list available files
ieegio_sample_data()

# check if file edfPlusD.edf exists
ieegio_sample_data("edfPlusD.edf", test = TRUE)

if (FALSE) {

ieegio_sample_data("edfPlusD.edf")

}

Run the code above in your browser using DataLab