Rstudio 和 Google Drive 同步问题:“该进程无法访问该文件,因为它正被另一个进程使用" [英] Rstudio and Google Drive Syncing Problems: "The process cannot access the file because it is being used by another process"

查看:20
本文介绍了Rstudio 和 Google Drive 同步问题:“该进程无法访问该文件,因为它正被另一个进程使用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用 RStudio 并将我的文件存储在 Google Drive(系统上带有文件夹的版本,就像 Dropbox).我之所以使用它,是因为它比 Dropbox 提供了更多的免费空间,而且我需要该空间用于我正在处理的项目.

So I'm using RStudio and storing my files on Google Drive (the version with folders on your system, acting like Dropbox). I'm using it because it provides a lot more space for free than Dropbox, and I need that space for the projects I'm working on.

当我尝试编写任何文档时——R 脚本、RMarkdown 文件等...——我得到标题中提到的错误.使用 Dropbox 不会发生这种情况.我已经为 Dropbox 找到了这个问题的答案,但解决方案(告诉 Dropbox 不要同步 Rproj 文件)似乎不适用于 Google Drive(如果是,请纠正我).

When I attempt to write any document at all -- an R script, an RMarkdown file, etc... -- I get the error mentioned in the title. This doesn't happen using Dropbox. I have found answers for this question for Dropbox, but the solution (tell Dropbox not to sync the Rproj file) doesn't seem applicable to Google Drive (if it is, please correct me).

目前,我正在暂停 Google 云端硬盘,这很好,但我经常忘记恢复它,这会导致头疼.

Currently, I'm pausing Google Drive, which is fine, but I often forget to resume it and that causes headaches.

感谢您的帮助!

推荐答案

我也遇到这个问题很久了.最简单的解决方案是在 RStudio 中工作时退出/关闭 GoogleDrive.你不会有持续的备份,但无论如何这不是一个大问题.您仍然可以在午休期间或下班后同步到您的驱动器.这也可能解决许多人遇到的其他问题.总而言之,GoogleDrive 可能不是最好的备份解决方案.我认为将驱动器仅用于电子邮件和随机共享文档(15-100 Gb)仍然是一个好主意,但对于严重的备份(至少 1 Tb)可能 DropBox 或其他一些解决方案是更可取的.

I also have been having this problem for a long time. The simplest solution is to quit/turn off GoogleDrive when working in RStudio. You are not going to have ongoing backups but it is not such a huge issue anyway. You can still sync to your drive during the lunch break or after the day. This might solve also the other issues that many people are having. All-in-all GoogleDrive is probably not the best backup solution. I think having the Drive just for e-mails and random shared documents (15-100 Gb) is still a good idea but for serious backing-up (at least 1 Tb) probably DropBox or some other solution is preferable.

这篇关于Rstudio 和 Google Drive 同步问题:“该进程无法访问该文件,因为它正被另一个进程使用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆