Play Sound

作者: Liam_ml | 来源:发表于2018-08-28 09:28 被阅读44次

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"

相关文章

网友评论

  • 王诗翔:有意思
    Liam_ml:在函数末尾加一个,提醒函数运行完了~

本文标题:Play Sound

本文链接:https://www.haomeiwen.com/subject/dvffwftx.html