knitr::opts_chunk$set(collapse=TRUE, comment = "#>") library(dieroller)
The package "dieroller" provides the functions necessary to simulate rolling a die of six sides with the options to select the display of the sides, as well as probabilities, and to visualize.
The first step is to create a die with the die() function
die <- die() die
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.