4 Workspace Orientation
Get a feel for the lay of the land.
Before starting to use
RStudio, let’s run the following code in the console (just copy and paste it):
usethis::use_blank_slate(). This makes it so whenever you close and then reopen
RStudio you start with a blank environment. Don’t worry, all your code is still saved in your
4.1 Default Window Arrangement
4.4 Various Tabs
The files tab will by default show your working directory (the folder that is “home base” for your R session).
These show all the packages you currently have installed. Many come standard with
R but others listed could have been installed by you.
We will use this tab a lot to look up how to use functions that maybe we are less familiar with.
This shows the “objects” (usually data) that
R knows is available for you to currently use. If nothing is in there, then you’ll need to import data or other stuff you want to work with. This will be discussed much more later on.