knitr::opts_chunk$set(echo = TRUE)

aha

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)

Caching Tests

library(tidyverse)
x <- rnorm(1e6) - 5e3
knitr::kable(head(x))
knitr::kable(head(x + 2))

second column

selsecond(mtcars)

Packrat test

library(binford)
data(LRB)
knitr::kable(head(LRB))

References



dakni/TestPackage documentation built on May 30, 2019, 8:02 a.m.