Hi Holger, Unfortunately I can't reproduce the error you're seeing. Searching for "r system error 127" yields this StackOverflow answer: https://stackoverflow.com/a/33647207/1664024 suggesting that you should use R's "shell" command in lieu of R's "system" command. I cannot confirm that this will work for you, as I'm not running Windows. I'm cc-ing the mailing list so that windows users can take over any further troubleshooting help.
-- dan Daniel McCloy http://dan.mccloy.info/ Postdoctoral Research Associate Institute for Learning and Brain Sciences University of Washington On Tue, Dec 12, 2017 at 10:18 AM, Holger Mitterer <holger.mitte...@um.edu.mt > wrote: > Hi Dan, > > > > thanks for the superfast response. > > I tried to get it to work and failed. > > > > I ruled out that it is the file path, > > because I had worked on the solution that I get a Praat “script” > > at the prompt which I copy, paste, and execute, and that worked. > > > > #The working praat script, works when executed > > Read from file: "D:/Data/ghajn/production/list1/0001/S010001VInitial_ > 08single.wav" > > Read from file: "D:/Data/ghajn/production/list1/0001/S010001VInitial_ > 08single.textGrid" > > > > #just to check, this is how the command looks like > > [1] "C:/Program Files/Praat/Praat.exe --open D:/Data/ghajn/production/ > list1/0001/S010001VInitial_08single.wav D:/Data/ghajn/production/ > list1/0001/S010001VInitial_08single.textGrid" > > > > #this is what comes back > > #I have tried both praat, and the full path (as in the praat manual), same > effect > > Warning message: > > running command 'C:/Program Files/Praat/Praat.exe --open > D:/Data/ghajn/production/list1/0001/S010001VInitial_08single.wav > D:/Data/ghajn/production/list1/0001/S010001VInitial_08single.textGrid' > had status 127 > > > > Take your time to respond, I am going home soon anyway. > > Just wanted to share what came out of it. > > > > Kind regards, > > Holger > > > > > > *From:* Dan McCloy [mailto:drmcc...@uw.edu] > *Sent:* Tuesday, December 12, 2017 7:01 PM > *To:* Holger Mitterer <holger.mitte...@um.edu.mt> > *Cc:* R in Lingustics <ling-r-lang-l@mailman.ucsd.edu> > *Subject:* Re: [R-lang] opening an sound and TextGrid in Praat from R > > > > Hi Holger, try this: > > > > audio <- "path/to/audio.wav" > > textgrid <- "path/to/textgrid.TextGrid" > > command <- paste(c("praat", "--open", audio, textgrid), collapse=" ") > > system(command) > > > > It will not pop open the editor window, but it will at least launch praat > and load the files into the object window for you. More info here: > > http://www.fon.hum.uva.nl/praat/manual/Scripting_6_9__ > Calling_from_the_command_line.html > > > > -- dan > > Daniel McCloy > http://dan.mccloy.info/ > Postdoctoral Research Associate > Institute for Learning and Brain Sciences > University of Washington > > > > On Tue, Dec 12, 2017 at 9:41 AM, Holger Mitterer < > holger.mitte...@um.edu.mt> wrote: > > Hello List, > > > > I am currently working on a production data set that has undergone forced > alignment. > > I can identify cases where alignment might be bad, and I want to look at > them in Praat. > > > > I have the filenames in R and I want to open the wav and textgrid file in > Praat. > > I have tried PraatR, but it does not support a simple “Read from file” > command. > > Any other ideas? > > > > Thanks in advance, > > Holger > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - > > - Prof. Holger Mitterer PhD (Maastricht) > > - Department of Cognitive Science > > - Faculty of Media and Knowledge Sciences > > - University of Malta > > - +356 2340 3127 <+356%202340%203127> > > > > >