Dear all, I would like to ask you if R can produce any kind of sound. It would be useful when code execution stops R to notify me by playing some sound. Is that possible in R? I would like to thank you in advance for your help Best Regards Alex
On Tue, Mar 8, 2011 at 10:01 AM, Alaios <alaios at yahoo.com> wrote:> Dear all, > I would like to ask you if R can produce any kind of sound. It would be useful when code execution stops R to notify me by playing some sound. > > > Is that possible in R?If you search for 'audio' or 'sound' on CRAN's list of packages you should find this: http://ftp.heanet.ie/mirrors/cran.r-project.org/web/packages/audio/index.html - which claims to be able to play sounds. Haven't tried it myself. Barry
Hi Alex, how about alarm() hth. Am 08.03.2011 11:01, schrieb Alaios:> Dear all, > I would like to ask you if R can produce any kind of sound. It would be useful when code execution stops R to notify me by playing some sound. > > > Is that possible in R? > > I would like to thank you in advance for your help > > Best Regards > Alex > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Eik Vettorazzi Institut f?r Medizinische Biometrie und Epidemiologie Universit?tsklinikum Hamburg-Eppendorf Martinistr. 52 20246 Hamburg T ++49/40/7410-58243 F ++49/40/7410-57790
On 03/08/2011 09:01 PM, Alaios wrote:> Dear all, > I would like to ask you if R can produce any kind of sound. It would be useful when code execution stops R to notify me by playing some sound. > > > Is that possible in R? >Hi Alex, You can add a line at the end of your script like this: system('sap /usr/share/twinkle/ringtone.wav') where "sap" is a command line audio player and "usr/share/twinkle/ringtone.wav" is a sound file. You will probably want to use another sound player and sound file. Jim
Including the \a escape sequence inside a cat() call should make a simple beep.> cat("All done! \a \n")On Tue, Mar 8, 2011 at 5:01 AM, Alaios <alaios@yahoo.com> wrote:> Dear all, > I would like to ask you if R can produce any kind of sound. It would be > useful when code execution stops R to notify me by playing some sound. > > > Is that possible in R? > > I would like to thank you in advance for your help > > Best Regards > Alex > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- ___________________________ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted]]