Learn R Programming

emuR (version 2.4.0)

import_mediaFiles: Import media files to emuDB

Description

Import new recordings (media files) to emuDB and create bundles. Looks for files with the defined mediafile extension of the emuDB (see mediaFileExtension in vignette emuDB) in dir or in sub-directories thereof (interpreted as sessions), for each mediafile create a bundle directory named as the basename of the mediafile in the specified session, and copies the mediafile into the bundle. If not already present, adds 'OSCI' and 'SPEC' perspectives to the emuDB config file.

Usage

import_mediaFiles(emuDBhandle, dir, targetSessionName = "0000", verbose = TRUE)

Arguments

emuDBhandle

emuDB handle as returned by load_emuDB

dir

directory containing mediafiles or session directories

targetSessionName

name of session in which to create the new bundles

verbose

display infos & show progress bar

Examples

Run this code
if (FALSE) {
## Add mediafiles from directory

 import_mediaFiles(myEmuDB,dir="/data/mymedia/")

}

Run the code above in your browser using DataLab