knitr::opts_chunk$set( # These options can be set to FALSE (capitalization matters). ########## set global options ############ echo = FALSE, # don't show code collapse = TRUE, # keep code from blocks together (if shown) message = TRUE, # show messages warning = TRUE, # show warnings error = TRUE, # show error messages comment = "", # don't show ## with printed output dpi = 100, # image resolution (typically 300 for publication) fig.width = 6.5, # figure width fig.height = 4.0 # figure height ) options(digits = 3) # round to three digits
Save this file as index.Rmd
Add the style.css file and bibliography.bib files to the directory hold with this file. They can be found here: https://github.com/RaymondBalise/rUM/tree/master/inst/bookFiles. Click the Raw button. Use the file menu to save the file. Be sure to keep the original names.
library(conflicted) conflict_prefer("filter", "dplyr", quiet = TRUE) conflict_prefer("lag", "dplyr", quiet = TRUE) suppressPackageStartupMessages(library(tidyverse)) # suppress "`summarise()` has grouped output by " messages options(dplyr.summarise.inform = FALSE)
suppressPackageStartupMessages(library(tidymodels)) tidymodels_prefer()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.