From 18df8fbfe84e3c310495e193ba27db7b493b0c06 Mon Sep 17 00:00:00 2001 From: S'busiso Mkhondwane Date: Sat, 8 Oct 2016 16:08:02 +0200 Subject: [PATCH] Update visualize.Rmd (#460) In Workflow: basics, you have TAB and ESCAPE in caps and made a change here to be similar. --- visualize.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualize.Rmd b/visualize.Rmd index 5b3e98f..8d30f57 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -221,7 +221,7 @@ ggplot(shapes, aes(x, y)) + As you start to run R code, you're likely to run into problems. Don't worry --- it happens to everyone. I have been writing R code for years, and every day I still write code that doesn't work! -Start by carefully comparing the code that you're running to the code in the book. R is extremely picky, and a misplaced character can make all the difference. Make sure that every `(` is matched with a `)` and every `"` is paired with another `"`. Sometimes you'll run the code and nothing happens. Check the left-hand of your console: if it's a `+`, it means that R doesn't think you've typed a complete expression and it's waiting for you to finish it. In this case, it's usually easy to start from scratch again by pressing `Escape` to abort processing the current command. +Start by carefully comparing the code that you're running to the code in the book. R is extremely picky, and a misplaced character can make all the difference. Make sure that every `(` is matched with a `)` and every `"` is paired with another `"`. Sometimes you'll run the code and nothing happens. Check the left-hand of your console: if it's a `+`, it means that R doesn't think you've typed a complete expression and it's waiting for you to finish it. In this case, it's usually easy to start from scratch again by pressing `ESCAPE` to abort processing the current command. One common problem when creating ggplot2 graphics is to put the `+` in the wrong place: it has to come at the end of the line, not the start. In other words, make sure you haven't accidentally written code like this: