knitr::opts_chunk$set(echo = TRUE)
Look at Figure \@ref(fig:testing), it shows the output of a magic function.
library(TestPackage) a <- add_2(seq(1:10)) plot(a)
Adding 2 to 4 we get r add_2(4)
.
knitr::kable(head(cars), caption = "A table of the cars package" )
Look at the table \@ref(tab:table).
Thanks to @bookdown, @rmarkdown, @knitr
Xie knows what he (?) is doing [-@knitr].
add_3(5)
library(tidyverse) x <- rnorm(1e6) - 5e3 knitr::kable(head(x))
knitr::kable(head(x + 2))
selsecond(mtcars)
library(binford) data(LRB) knitr::kable(head(LRB))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.