简体   繁体   English

我怎样才能更新.RData?

[英]How can I update .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. 在阅读完这个问题后,我试图清理我的工作区,发现每次打开R时,我最近删除的所有原始项目都已恢复。 I then checked .RData and found that it had not been modified in a few weeks even though I repeatedly saved the workspace image. 然后我检查了.RData并发现它在几周内没有被修改,即使我反复保存了工作区图像。 How often is .RData updated and how can I change when .RData is updated so that it reflects more recent changes? .RData的更新频率是多少?如何更新.RData,以便它反映更近期的更改?

It gets modified if and when you 它会在你和你的时候被修改

  1. use save.image() 使用save.image()
  2. use q() and answer yes 使用q()并回答是

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. 我个人的偏好是显式加载和保存我想要跨会话缓存的数据或进行进一步分析。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM