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

From: Gabor Grothendieck <ggrothendieck_at_myway.com>
Date: Tue 08 Mar 2005 - 03:44:03 EST

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.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Mar 08 04:17:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:41 EST