2.4 Am I ready to use R now?
Well almost. There is one thing we need to consider: telling R
where is our working directory. By default R
saves this to your documents (or somewhere else). Here, this is generally OK, though when working on your own data, things get more complicated.
There are two schools of thought here.
1. Create R
scripts that run the analyses and saves the output(s) directly to your working directory. Does not save the .RData
image at the end
2. Create a project: a self-contained folder, where all your scripts, figures, etc. will be automatically saved. Saves the .RData
at the end
I subscribe to the second, as some of the computations I run take ages to finish.