This package enables playing audio of “Merry Christmas” and “Happy Birthday” using R. It also contains a small number of arrangements that slightly deviate from the standard song versions. I developed this toy package in Christmas spirit; it will not be submitted to CRAN. Audio is dependent on a pre-installed WAV audio player that the R installation can locate.
You can install the development version of eaRworm from GitLab with:
remotes::install_gitlab("chris-dworschak/eaRworm") # downloads and installs the package from GitLab
To use eaRworm
, simply run:
library(eaRworm) # loads the package
merry.christmas(tune = "normal") # plays the standard version of "Merry Christmas"
happy.birthday(tune = "exciting") # plays a version of "Happy Birthday"