Hacker News new | ask | show | jobs
by raizinho 1814 days ago
Could you elaborate?
1 comments

R has this concept of workspaces. A workspace contains the loaded modules as well as the state of all user-defined variables, their values, etc. And a common workflow is that the entire workspace state is persisted in an RData file. It's like you were working in some REPL, but the last state of the REPL is persisted in between your sessions. So it's a different kind of programming, it's more interactive if you don't need to start from scratch every time. That means if something takes a while to compute, it's OK, because you only run it once, not every time you "run the program".
Ah. I use R a lot but gotten so used to not saving RData and Rhistory that I forgot why they were useful.