-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFunWith_R.Rmd
More file actions
32 lines (24 loc) · 725 Bytes
/
FunWith_R.Rmd
File metadata and controls
32 lines (24 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: "Fun with R Notebook"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*.
```{r}
plot(cars)
```
## Play Mario sounds in R
```{r beepr library}
library(beepr)
#beep('mario') # nice
beep('coin') # nice
#beep('ping')
#beep('fanfare')
#beep('complete')
#beep('treasure') # ok
#beep('sword')
# downloaded
#beep('./wav/alien-spaceship_daniel_simion.wav')
```
https://soundbible.com
can download .wav files for sounds and save in a file then call them