R CMD检查的问题

时间:2017-06-02 10:12:43

标签: r package cran

我目前正在使用Windows中的R软件包,最近将我的所有文件从R-forge下载到我的本地(linux)计算机。奇怪的是,我在应用包检查时出错,表明我的计算机上没有安装“网格”。 00check.log 的输出如下:

==> R CMD build --no-manual pkg

* checking for file ‘pkg/DESCRIPTION’ ... OK
* preparing ‘metamisc’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘metamisc_0.1.5.tar.gz’

==> R CMD check --no-manual --as-cran metamisc_0.1.5.tar.gz

* using log directory ‘/home/arrakis/SpiderOak Hive/9 - PACKAGES/metamisc/metamisc.Rcheck’
* using R version 3.4.0 (2017-04-21)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using options ‘--no-manual --as-cran’
* checking for file ‘metamisc/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘metamisc’ version ‘0.1.5’
* checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
Maintainer: ‘Thomas Debray <thomas.debray@gmail.com>’
* 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 ‘metamisc’ can be installed ... ERROR
Installation failed.
See ‘/home/arrakis/SpiderOak Hive/9 - PACKAGES/metamisc/metamisc.Rcheck/00install.out’ for details.
* DONE
Status: 1 ERROR

See
  ‘/home/arrakis/SpiderOak Hive/9 - PACKAGES/metamisc/metamisc.Rcheck/00check.log’
for details.


Exited with status 1.

00install.out 的输出为:

* installing *source* package ‘metamisc’ ...
** R
** data
** inst
** preparing package for lazy loading
Error: package or namespace load failed for ‘survival’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘lattice’
Error : package ‘survival’ could not be loaded
ERROR: lazy loading failed for package ‘metamisc’
* removing ‘/home/arrakis/SpiderOak Hive/9 - PACKAGES/metamisc/metamisc.Rcheck/metamisc’

但是,我可以手动加载生存和格子,没有任何问题。这些软件包安装在〜/ R / x86_64-pc-linux-gnu-library / 3.4文件夹中,该文件夹也位于库路径中。

> .libPaths()
[1] "/home/arrakis/R/x86_64-pc-linux-gnu-library/3.4" "/usr/local/lib/R/site-library"                  
[3] "/usr/lib/R/site-library"                         "/usr/lib/R/library"           

另外,在我的Windows计算机上编译和运行程序包没有任何问题,所以我很困惑这个问题的起源。

最后,关于我的安装的一些信息:

R版本3.4.0(2017-04-21) - “你愚蠢的黑暗” 版权所有(C)2017 R统计计算基金会 平台:x86_64-pc-linux-gnu(64位)

非常感谢您的帮助!!

0 个答案:

没有答案