Module# 10: Building your own R package assignment

Hello! I have made a fun package where whenever you make an error, a fart noise is produced. For some reason I cannot put the screenshot of the Description file here, but you can take a look at it here.

In order to activate the sound for errors, you have to import & load the package like so:
 
library(devtools) #you may have it in your system
devtools::install_github("opendatasurgeon/farthur")
library(farthur) 
options(error = function() {fart()})

#then your stuff
 
Then every line underneath this options namespace become visible to my package, and a noise is generated. If you want to give it a shot, please go feel free to go here.


Thanks!
~Mihir

Comments