04.02-The RStudio Environment
04.02-The RStudio Environment
The top left hand pane is used for editing and saving
Source code, we haven’t used this very much yet, but it is
very useful for creating scripts, functions and code for easy
reproducibility.
You can tailor you panes in your environment once and for
all in the Preferences (access it by clicking on the RStudio
tab at the top on the Mac or use the Options dialog Tools
> Options menu in Windows),
then choose the Pane icon (forth one down).
women
## height weight
## 1 58 115
## 2 59 117
## 3 60 120
## 4 61 123
## 5 62 126
## 6 63 129
## 7 64 132
## 8 65 135
## 9 66 139
## 10 67 142
## 11 68 146
## 12 69 150
## 13 70 154
## 14 71 159
## 15 72 164
The most useful shortcuts
We have already seen some of these in action, here is a
more complete list:
- Up arrow in the Console window goes through your
command history.
You’ll notice that if you just use the Ctl-Enter way of asking
for the plot, the plot may appear in your Console screen,
this is true for recent versions of RStudio that have a
Notebook type interface like Python notebooks.
To have the plot appear in the Plots pane, use cut and paste
to the Console screen. Once you have made the plot you
can choose export to save the plot to a file.
plot(all17,sqr17,type='b')
plot(all17,sqr17,type='c')
Summary of this Session:
In this session we have learned more about using the
RStudio environment:
- There are four possible panes that can be customized
using the Options and Preferences.
- Cutting and pasting across different panes reduces the
amount of typing necessary.
- There are many different keyboard shortcuts available, up
arrow and ctrl uparrow, and tab are some really important
ones.
- The Pane on the lower right can help you install packages,
visualize plots or peruse help files.
Your Turn:
Go to https://support.rstudio.com/hc/en-
us/sections/200107586-Using-RStudio and look in the
Keyboard Shortcuts, how do you move the cursor to the
Console with a keyboard shortcut (without using the
mouse)?