devtools :: install()有效,但devtools :: check()无效

时间:2018-11-27 16:59:15

标签: r devtools

我正在测试R包(称为“ TRIMmaps”)并运行lnk_mnto.asp。 “检查是否可以安装软件包“ TRIMmaps””检查失败。在日志文件中,我找到了以下信息:

在00check.log中...

devtools::check()

...并在00install.out中:

* using log directory ‘/tmp/RtmpsnrErp/TRIMmaps.Rcheck’
* using R version 3.4.4 (2018-03-15)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using options ‘--no-manual --as-cran’
* checking for file ‘TRIMmaps/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘TRIMmaps’ version ‘1.14-0’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘TRIMmaps’ can be installed ... ERROR
Installation failed.
See ‘/tmp/RtmpsnrErp/TRIMmaps.Rcheck/00install.out’ for details.
* DONE

按照Hadley Wickham在他的“ R软件包”一书中的建议,我运行* installing *source* package ‘TRIMmaps’ ... ** R ** inst ** preparing package for lazy loading Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘lattice’ ERROR: lazy loading failed for package ‘TRIMmaps’ * removing ‘/tmp/RtmpsnrErp/TRIMmaps.Rcheck/TRIMmaps’ 来查看安装过程中出了什么问题,但是它运行起来没有任何问题,并且安装了该软件包!为什么可以用devtools :: install()而不是devtools :: check()来安装?

此外,我对00install.out中缺少软件包格的消息感到困惑:已安装了格 ,它已安装在我的默认库中(第一个由devtools::install()显示),它在“导入”下的“描述”文件中列出,并且在“名称空间”文件中列出。

有人暗示这里发生了什么吗?预先感谢!

0 个答案:

没有答案