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"
    原文作者:Liam_ml
    原文地址: https://www.jianshu.com/p/9734e65db7c9
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞