Scripts
- Use the script editor instead of the console -> complex pipelines and graphics.
- File -> New file -> R script, or
Cmd/Ctrl + Shift + N
- a place for experimenting your R code
- Edit the script and re-run the code
- Save it as a R code file:
yourfilename.R
![Figure 6.1: Opening the script editor adds a new pane at the top-left of the IDE](https://r4ds.hadley.nz/diagrams/rstudio/script.png)
Figure 6.1: Opening the script editor adds a new pane at the top-left of the IDE