Nothing
Write R code in external R scripts, and use read_chunk()
to read them into the current document.
knitr::read_chunk("113-foo.R")
The following two chunks are from the external R script 113-foo.R
:
1 + 1
## [1] 2
x = rnorm(10)
mean(x)
## [1] 0.07463
sd(x)
## [1] 0.9538
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.