Make a function that runs a Praat script
Usage
wrap_praat_script(
script_code_to_run,
returning = c("last-argument", "info-window"),
praat_location = get_praat_location()
)
Arguments
- script_code_to_run
a Praat script to run.
- returning
value to return.
"last-argument"
returns the last argument to the Praat script."info-window"
returns the contents of the Praat Info Window.- praat_location
path to the Praat executable. Defaults to the value provided by
get_praat_location()
.
Details
This function basically sets up a call to Praat's command-line
interface using system2()
.