Nothing
knitr::opts_chunk$set(echo = TRUE)
The highlightHTML
packages allows for {#bggrey simple markup} to add styling to text and tables. Using the rmarkdown
package and the table_id_inject
function allows users to easily add markup to Rmd documents and render directly to HTML.
library(dplyr) library(highlightHTML) chickwts %>% group_by(feed) %>% summarise(avg_weight = mean(weight), sd_weight = sd(weight)) %>% mutate(feed = as.character(feed)) %>% table_id_inject(id = c('#bggrey', '#bgblack', '#bglightred', '#textblue'), conditions = c('> 270', '> 300', '> 60', '== "horsebean"'), variable = list('avg_weight', 'avg_weight', 'sd_weight', 'feed'), num_digits = 3) %>% knitr::kable(format = 'markdown')
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.