wrap_praat_script: Make a function that runs a Praat script

View source: R/main.R

wrap_praat_scriptR Documentation

Make a function that runs a Praat script

Description

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().

Value

see return argument


tjmahr/tjm.praat documentation built on May 25, 2023, 5:41 p.m.