bayesrules is an R package to supplement the Bayes Rules! book. It contains datasets and functions that are used in the book. You can find vignettes on the package website.
You can install bayesrules from CRAN.
You can install the development version from GitHub. You would also need to install the devtools package if you do not have it installed already.