[R] How can we ring a bell in Windows?

Gabor Grothendieck ggrothendieck at myway.com
Mon Mar 7 17:44:03 CET 2005


Lu Joseph <c_joseph_lu <at> yahoo.com.tw> writes:

: 
: Hello useRs,
: 
: Is there a way to write code in R
: to ring a bell in Windows?
: 

Here are two ways:

cat("\7")

system("sndrec32 /play /close c:/windows/media/ding.wav")

The second way uses Windows Sound Recorder to play the ding.wav file
on my XP system and which may or may exist in the same location on 
other versions of Windows.




More information about the R-help mailing list