knitr::opts_chunk$set(echo = FALSE, eval = TRUE, out.width = '75%')
Knit
button or use the Shift + Ctrl + K
shortcutrmarkdown::render()
.Inline LaTeX: $y_i = \beta_0 + \beta_1x_i + \varepsilon_i$
Standalone LaTeX:
$$y_i = \beta_0 + \beta_1x_i + \varepsilon_i$$
Embed R code:
mean_speed <- mean(cars$speed) mean_speed
Access R objects: The mean speed of the cars
dataset is r mean_speed
.
Insert an image from the images/
subdirectory:

Insert a footnote anywhere.[^my-note]
[^my-note]: Citations and footnotes will be formatted automatically when you render the document.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.