Play Sound

R语言中,当你想在程序运行完之后,发出一点声音提醒你,就可以这样玩:

beer::beep(sound = 2)
Usage

beep(sound = 1, expr = NULL)
Arguments

sound   
character string or number specifying what sound to be played by either specifying one of the built in sounds, specifying the path to a wav file or specifying an url. The default is 1. Possible sounds are:
1"ping"
2"coin"
3"fanfare"
4"complete"
5"treasure"
6"ready"
7"shotgun"
8"mario"
9"wilhelm"
10"facebook"
11"sword"

你可能感兴趣的:(Play Sound)