Here is my very interesting document.
Chunk 1 is calling chunk 2 here, but you can't see it if echo=FALSE
# echo=TRUE
# echo=FALSE
myFunction(7)
My long and ugly R function is now down here.
# it's not really long and ugly # it just squares the input # but imagine that it is long and ugly myFunction <- function(x) { print(x ^ 2) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.