[英]devtools::check - System command 'Rcmd.exe' failed, exit stauts:1, stdout + stderr:
I am currently developing a package for my PhD containing functions for the data analysis for my project.我目前正在为我的博士开发一个包,其中包含用于我的项目数据分析的功能。 The setup is windows 10 and all files are saved locally on the PC and synchronised to One Drive.
设置为 Windows 10,所有文件都保存在 PC 本地并同步到 One Drive。
I am able to build my package and was also able to check it.我能够构建我的包,也能够检查它。 However I closed the R Studio and now (a few days later) that I wanted to work on it again (without changing anything from the code that was previously running with 0 errors, warnings and notes), it does not work.
但是,我关闭了 R Studio,现在(几天后)我想再次对其进行处理(不更改之前运行的代码中的任何内容,其中包含 0 个错误、警告和注释),但它不起作用。 I can still build my package without error but I can not use devtools::check to check it.
我仍然可以毫无错误地构建我的包,但我不能使用 devtools::check 来检查它。 The output of devtools::check is:
devtools::check 的输出是:
On the Windows File Explorer I noticed that inside the package (name eEP.Analysis.V2) there is the R project folder where a lock file is not synchronized, as can be seen here:在 Windows 文件资源管理器上,我注意到包(名称 eEP.Analysis.V2)内有 R 项目文件夹,其中没有同步锁定文件,如下所示:
Is it possible that this is the cause of the problem?
这可能是问题的原因吗? How can I fix this?
我怎样才能解决这个问题?
Thank you very much for your help.非常感谢您的帮助。
The problem was indeed caused by the synchronization of OneDrive and the R temporary files.问题确实是由 OneDrive 和 R 临时文件的同步引起的。 Namely the files from within the R-Project folder caused the problems.
即来自 R-Project 文件夹中的文件导致了问题。 The problem does not occur if the automatic synchronization to OneDrive is deactivated.
如果禁用与 OneDrive 的自动同步,则不会出现此问题。 So whenever I work with RI just deactivate the synchronization and this solves the problem (or at least successfully avoids it).
因此,每当我使用 RI 时,只需停用同步即可解决问题(或至少成功地避免了它)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.