Describe chunk structure (#325)

This commit is contained in:
Jennifer (Jenny) Bryan 2016-08-29 05:53:33 -07:00 committed by Hadley Wickham
parent f0ba226d5f
commit 4df1dc8f62
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ Obviously, I'd recommend you learn the keyboard shortcut. It will save you a lot
You can continue to run the code using the keyboard shortcut that by now (I hope!) you know and love: Cmd/Ctrl + Enter. However, chunks get a new keyboard shortcut: Cmd/Ctrl + Shift + Enter, which runs all the code in the chunk. Think of a chunk like a function. A chunk should be relatively self-contained, and focussed around a single task.
The following sections describe the chunk header which consists of ```` ```{r ````, followed by an optional chunk name, followed by comma separated options, followed by ```` ``` ````.
The following sections describe the chunk header which consists of ```` ```{r ````, followed by an optional chunk name, followed by comma separated options, followed by `}`. Next comes your R code and the chunk end is indicated by a final ```` ``` ````.
### Chunk name