knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
install.packages("remotes") remotes::install_github("nickbrazeau/discent")
discent
relies on the Rcpp package, which requires certain OS-specific dependencies:
sudo apt-get install r-base-dev texlive-full
Assuming everything installed correctly, you can now load the package:
library(discent)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.