Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I update .RData?

Tags:

r

workflow

rdata

After reading this question I attempted to clean out my workspace and found that each time I opened R all the original items I had recently removed were restored. I then checked .RData and found that it had not been modified in a few weeks even though I repeatedly saved the workspace image. How often is .RData updated and how can I change when .RData is updated so that it reflects more recent changes?

like image 890
Stedy Avatar asked Mar 08 '26 10:03

Stedy


1 Answers

It gets modified if and when you

  1. use save.image()
  2. use q() and answer yes

Otherwise it does not get changed.

My personal preference is to explicitly load and save data I want to cache across sessions or for further analysis.

like image 165
Dirk Eddelbuettel Avatar answered Mar 11 '26 03:03

Dirk Eddelbuettel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!