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
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
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
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
__
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.
5 matches
Mail list logo