From the course: Learning the R Tidyverse

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Disable auto-saving of RData for reproducibility

Disable auto-saving of RData for reproducibility - R Tutorial

From the course: Learning the R Tidyverse

Start my 1-month free trial

Disable auto-saving of RData for reproducibility

- [Instructor] As with all applications there are some default configuration options for RStudio that actually make your life harder. One of those is the auto saving of RData files. Let's have a look at how RStudio behaves when we try and close it in order to understand the issue with RData files. So I have RStudio open, I'm going to go to file, new file, R Script, to open me up a script file. And what I'm going to do is I'm going to create a little vector containing some data. For instance, survey results, maybe I've done a survey of some of my colleagues, and I'm going to store that against a symbol survey results, and it's going to be a little vector of 1, 6, 10, and maybe 11, and I'm going to press cmd+enter to store that variable in my environment. So I can see down in my environment I have my value survey results. So now let's pretend that we're finished for the day, we've done all of our RCoding, we've stored our data, our survey results inside of that script file, and what we…

Contents