From 134a318e529943bb2f3695f82afd681a4905d2a9 Mon Sep 17 00:00:00 2001 From: Colin Gillespie Date: Sun, 28 Aug 2016 14:07:53 +0100 Subject: [PATCH] Added Ctrl for non-apple crowd. (#330) --- workflow-scripts.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-scripts.Rmd b/workflow-scripts.Rmd index c37a815..35aaab2 100644 --- a/workflow-scripts.Rmd +++ b/workflow-scripts.Rmd @@ -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)