devtools :: check-系统命令"Rcmd.exe"失败,退出stauts:1,stdout + stderr: [英] devtools::check - System command 'Rcmd.exe' failed, exit stauts:1, stdout + stderr:

查看:96
本文介绍了devtools :: check-系统命令"Rcmd.exe"失败,退出stauts:1,stdout + stderr:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为博士学位开发一个软件包,其中包含用于项目数据分析的功能.设置为Windows 10,所有文件都保存在PC本地并同步到One Drive.

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.

我能够构建我的程序包,也能够对其进行检查.但是,我关闭了R Studio,现在(几天后)我想再次使用它(不更改以前运行的带有0个错误,警告和注释的代码中的任何内容),它不起作用.我仍然可以构建我的程序包而没有错误,但是我不能使用devtools :: check进行检查.devtools :: check的输出是:

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. I can still build my package without error but I can not use devtools::check to check it. The output of devtools::check is:

在Windows File Explorer上,我注意到在软件包(名称为eEP.Analysis.V2)中,有一个R项目文件夹,其中锁文件未同步,如此处所示:

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:

这可能是造成问题的原因吗?我该如何解决?

Is it possible that this is the cause of the problem? How can I fix this?

非常感谢您的帮助.

推荐答案

该问题确实是由OneDrive和R临时文件的同步引起的.即来自R-Project文件夹中的文件导致了问题.如果取消了与OneDrive的自动同步,则不会发生此问题.因此,每当我使用R时,我都会停用同步,这样就可以解决问题(或者至少成功地避免了同步问题).

The problem was indeed caused by the synchronization of OneDrive and the R temporary files. Namely the files from within the R-Project folder caused the problems. The problem does not occur if the automatic synchronization to OneDrive is deactivated. So whenever I work with R I just deactivate the synchronization and this solves the problem (or at least successfully avoids it).

这篇关于devtools :: check-系统命令"Rcmd.exe"失败,退出stauts:1,stdout + stderr:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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