我试图上传我的软件包到CRAN和使用devtools::check(),但我无法理解为什么该函数显示1注。
代码可在我的存储库中使用。check函数显示以下消息:
Duration: 44.3s
> checking R code for possible problems ... NOTE
Found an obsolete/platform-specific call in the following function:
'consulta_pedidos'
Found the platform-specific device:
'X11'
dev.new() is the preferred way to open a new device, in the unlikely
event one is needed.
0 errors √ | 0 warnings √ | 1 note x有人知道原因吗?提前谢谢你!
发布于 2022-01-04 23:54:50
我很确定这是个假阳性,来自这段代码
我还没有详细分析这一点,但我认为现在发生的事情是:
X11 (作为非标准评估/符号管道的一部分)。package::grDevices中找到一个具有该名称的函数(“闭包”)bad_dev <- c("quartz", "x11", "X11")这可能值得作为bug报告提交,或者至少供讨论(无论是在r-devel@r-project.org还是r-package-devel@r-project.org上)。
https://stackoverflow.com/questions/70585796
复制相似问题