[R] Make R 'Beep'

Alaios alaios at yahoo.com
Tue Mar 29 11:00:34 CEST 2011


Tried it !
Worked ! Thanks a lot

--- On Tue, 3/8/11, Jim Lemon <jim at bitwrit.com.au> wrote:

> From: Jim Lemon <jim at bitwrit.com.au>
> Subject: Re: [R] Make R 'Beep'
> To: "Alaios" <alaios at yahoo.com>
> Cc: R-help at r-project.org
> Date: Tuesday, March 8, 2011, 10:14 AM
> 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
> 
> 
>



More information about the R-help mailing list