It runs a 'Praat' script, with optional arguments passed to the script.
Value
If the 'Praat' script returns standard output this is returned as a character vector. Also, if the script has instructions to create files, these will be created.
Examples
if (FALSE) { # \dontrun{
script <- system.file("extdata", "get-formants.praat", package = "speakr")
# Run get-formants.praat with argument "Hertz" and log to console.
praat_run(script, "Hertz")
# Run get-formants.praat with arguments and save in R variable.
library(readr)
formants <- praat_run(script, "Hertz", 0.03, capture = TRUE) %>%
read_csv()
} # }