[R] alarm() doesn't beep

2012-05-05 Thread Liviu Andronic
Dear all I'd like to make a beeping sound in R, but alarm() doesn't beep? I checked ?alarm but I couldn't find any pointers to system configuration. Any ideas? Regards Liviu sessionInfo() R version 2.14.2 (2012-02-29) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8

Re: [R] alarm() doesn't beep

2012-05-05 Thread R. Michael Weylandt
It doesn't seem to be super robust and might depend on how you are running R: for me (OS X 10.6), I get the beep at the terminal and in the R.app GUI, but not within RStudio. Michael On Sat, May 5, 2012 at 2:12 PM, Liviu Andronic landronim...@gmail.com wrote: Dear all I'd like to make a

Re: [R] alarm() doesn't beep

2012-05-05 Thread David Winsemius
Liviu; Is there a command you could call with system()? -- David. On May 5, 2012, at 2:12 PM, Liviu Andronic wrote: Dear all I'd like to make a beeping sound in R, but alarm() doesn't beep? I checked ?alarm but I couldn't find any pointers to system configuration. Any ideas? Regards Liviu

Re: [R] alarm() doesn't beep

2012-05-05 Thread Liviu Andronic
On Sat, May 5, 2012 at 8:34 PM, David Winsemius dwinsem...@comcast.net wrote: Is there a command you could call with system()? Yes. Something like: system(play /tmp/02Canon.mp3) works jsut fine. But I was curious about alarm(). Liviu __

Re: [R] alarm() doesn't beep

2012-05-05 Thread Jeff Newmiller
The alarm() function just sends a ctrl-g (ASCII BEL character) to the console terminal. If the terminal type recognizes this byte according to that interpretation, and it is not locally configured to disable sound, then you should hear an audible alert. Linux consoles typically do handle this.