简体   繁体   English

R CMD CHECK --as-cran 在 OS X Catalina 上失败

[英]R CMD CHECK --as-cran failing on OS X Catalina

I am building a new R package on an iMac w/ Catalina.我正在带有 Catalina 的 iMac 上构建一个新的 R package。 I have installed the latest XCode and XQuartz.我已经安装了最新的 XCode 和 XQuartz。 My new package builds fine, ie我的新 package 构建良好,即

R CMD BUILD conicFit

runs without error.运行没有错误。 Then I tried然后我尝试了

R CMD CHECK  --as-cran conicFit 

and get this error:并得到这个错误:

* using log directory ‘/Users/cgw/Rgames/fitConic.Rcheck’
* using R version 4.0.0 (2020-04-24)
* using platform: x86_64-apple-darwin17.0 (64-bit)
* using session charset: UTF-8
* using option ‘--as-cran’
* checking for file ‘fitConic/DESCRIPTION’ ... OK
* this is package ‘fitConic’ version ‘1.0’
* checking CRAN incoming feasibility ...Error:  file './DESCRIPTION' does not exist
Execution halted 

If I run without the --as-cran flag, the check passes with no errors or warnings.如果我在没有--as-cran标志的情况下运行,则检查通过,没有错误或警告。 What's even more frustrating is that I can re-run older packages and do not get this error, which suggests that the actual error is something other than not finding "./DESCRIPTION".更令人沮丧的是,我可以重新运行较旧的软件包并且不会收到此错误,这表明实际错误不是找不到“./DESCRIPTION”。

Any ideas as what to test, or what to reinstall, etc.?关于测试什么或重新安装什么等的任何想法?

It appears that a subtle change in the way R CMD CHECK works under R 4.X caused commands that previously worked to fail. R CMD CHECK在 R 4.X 下的工作方式的细微变化似乎导致以前工作的命令失败。 The solution is to specify the tarball, ie解决方案是指定tarball,即

R CMD CHECK --as-cran fitConic.tar.gz  

runs the detailed code check to completion.运行详细的代码检查以完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM