Markdown chunk option

For each knitr code chunk option below

  1. Experiment with the different options.
  2. Re-render the file to see what the option does. If you cannot tell, re-render the file both with and without the code chunk.
  3. Describe in your own words what the option does.
  4. Use the RStudio's auto complete function; this is accessed via the TAB key.

eval

colMeans(cars)
1 + 1

Description:


results

carmeans = colMeans(cars)
1 + 1

Description:


echo

plot(cars)

Description:


fig.width and fig.height

When adding multiple arguments to a code chunk, separate the arguments by a comma.

plot(cars)

Description:


message

f = function(x) {
  message("Thanks")
  return(x)
}
f(10)

Description:




jr-packages/jrAutomate documentation built on Dec. 14, 2019, 6:35 p.m.