library(dovetail) source(dvt_opts())
This is a simlar setup to http://swcarpentry.github.io/r-novice-inflammation/05-cmdline/index.html#a-simple-command-line-program
#' #'Let's try the ways we can add two numbers #' #' 1. Use an operator #'@solution Use `+` #' #' ```r #' x <- print(1 + 1) #' ``` #' @end #' 2. Use a function #' @solution Use `sum()` #' #' ```r #' x <- print(sum(1, 2)) #' ``` #' @end #' 3. Use an operator *like* a function #' @solution Use `` `+`() `` #' #' ```r #' x <- print(`+`(2, 3)) #' ``` #' @end #' #' R is kinda weird, no?
r 3 + 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.