chunks

In an RMarkdown document there are several aspects of the structure that help make many of the reproducible leverage points achievable. chunks are one of these aspects.

A chunk is incapsulated in $$ and $$ where the language that will be exucted being wrapped in {} as below for a R chunk:



Option 1

var foo = function(x) {
  return(x + 5);
}
foo(3)

Option 2

var foo = function(x) {
  return(x + 5);
}
foo(3)

Option 3

And here is the same code yet again but with line numbers:

1
2
3
4
var foo = function(x) {
  return(x + 5);
}
foo(3)