gpt4 book ai didi

r - .RDataTmp 临时文件的用途? [R]

转载 作者:行者123 更新时间:2023-12-02 12:37:51 32 4
gpt4 key购买 nike

在保存工作空间的每个目录中创建的 R 临时文件的用途是什么?它包含哪些数据以及删除是否安全?

最佳答案

当 R 等待其 file 参数成功时,该文件是 save.image() 的保存文件。来自 help(save.image) 及其 safe 参数 -

safe - logical. If TRUE, a temporary file is used for creating the saved workspace. The temporary file is renamed to file if the save succeeds. This preserves an existing workspace file if the save fails, but at the cost of using extra disk space during the save.

因此该文件包含整个工作区图像,最好将其保留在那里,以防 R 无法正常保存工作区。

我还猜测,如果您看到此文件,则 R 已无法重命名该文件,因此您可能需要搜索 file 并在删除临时文件之前检查其内容。

关于r - .RDataTmp 临时文件的用途? [R],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32098036/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com