Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify multiple input for View & Edit? #5

Open
thealk opened this issue Apr 11, 2019 · 0 comments
Open

Specify multiple input for View & Edit? #5

thealk opened this issue Apr 11, 2019 · 0 comments

Comments

@thealk
Copy link

thealk commented Apr 11, 2019

I may be missing something, but how do you specify multiple inputs (not arguments) for a command like "View & Edit..." that requires both a Sound and TextGrid object be selected?

Specifying 2 file paths as a list:

praat("View & Edit...", input=list(wavPath("temp.wav"), tgPath("temp.TextGrid")))

results in Error in file.exists(input) : invalid 'file' argument

Combining 2 file paths with c():

praat("View & Edit...", input=c(wavPath("temp.wav"), tgPath("temp.TextGrid")))

results in:

sh: __Edit...: command not found
Warning messages:
1: In if (!file.exists(input)) { :
  the condition has length > 1 and only the first element will be used
2: In if (output == input) { :
  the condition has length > 1 and only the first element will be used
3: In system(command = CommandStringB, intern = intern) :
  error in running command
Error: Unknown value "" for boolean "simplify".
Script “/Library/Frameworks/R.framework/Resources/library/PraatR/PraatScripts/ZeroArguments.praat” not completed.
Praat: script command <</Library/Frameworks/R.framework/Resources/library/PraatR/PraatScripts/ZeroArguments.praat Modify View__>> not completed.

Praat version: 6.0.48

R Version:

platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          5.2                         
year           2018                        
month          12                          
day            20                          
svn rev        75870                       
language       R                           
version.string R version 3.5.2 (2018-12-20)
nickname       Eggshell Igloo   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant