Skip to content

Commit

Permalink
Added Ctrl for non-apple crowd. (hadley#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie authored and hadley committed Aug 28, 2016
1 parent 7f7fbcc commit 134a318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow-scripts.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The script editor is a great place to put code you care about. Keep experimentin

## Running code

The script editor is also a great place to build up complex ggplot2 plots or long sequences of dplyr manipulations. The key to using the script editor effective is to memorise one of the most important keyboard shortcuts: Cmd/Ctrl + Enter. This executes the current R expression in the console. For example, take the code below. If your cursor is at █, pressing Cmd + Enter will run the complete command that generates `not_cancelled`. It will also move the cursor to the next statement (beginning with `not_cancelled %>%`). That makes it easy to run your complete script by repeatedly pressing Cmd/Ctrl + Enter.
The script editor is also a great place to build up complex ggplot2 plots or long sequences of dplyr manipulations. The key to using the script editor effective is to memorise one of the most important keyboard shortcuts: Cmd/Ctrl + Enter. This executes the current R expression in the console. For example, take the code below. If your cursor is at █, pressing Cmd/Ctrl + Enter will run the complete command that generates `not_cancelled`. It will also move the cursor to the next statement (beginning with `not_cancelled %>%`). That makes it easy to run your complete script by repeatedly pressing Cmd/Ctrl + Enter.

```{r, eval = FALSE}
library(dplyr)
Expand Down

0 comments on commit 134a318

Please sign in to comment.