简体   繁体   English

devtools::check - 系统命令 'Rcmd.exe' 失败,退出 stauts:1,stdout + stderr:

[英]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.

相关问题 install_github 中的错误:系统命令“Rcmd.exe”失败,退出状态:1,打印了标准输出和标准错误 - Error in install_github: System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed Rterm.exe和Rcmd.exe - Rterm.exe and Rcmd.exe 安装软件包时 Rcmd.exe 出现问题 - Problem with Rcmd.exe when installing packages 安装 package 失败。 错误:系统命令错误,退出状态:-1,stdout + stderr empty, - Failed to install a package. Error: System command error, exit status: -1, stdout + stderr empty, R.exe、Rcmd.exe、Rscript.exe 和 Rterm.exe:有什么区别? - R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference? Rcmd check/Rcmd build 导致找不到文件,导致 devtools::check 导致 package 安装失败 - Rcmd check/Rcmd build leads with file not found, leading devtools::check to fail package installation 如何将stderr和stdout输出附加到system2 R命令中的文件? - How to append stderr and stdout output to file in system2 R command? R命令行最佳实践:退出,打印标准输出,打印标准,避免警告 - R command line best practices: exit, print stdout, print stderr, avoid warnings Rcmd检查:我从未使用过的':::'调用导入的未导出对象 - Rcmd Check: Unexported objects imported by ':::' calls I have never used R从系统命令的stdout读取数据到数据帧 - R read data from stdout of system command into data frame
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM