我正在尝试创建一个包。这取决于几个包。我将导入添加到命名空间文件和描述文件中的依赖项。
我找到了可能的解决方案 here和 here ,但这些没有用 - 我想是因为我在 CentOS 上。
这是我在屏幕上看到的:
[hadoop@localhost RProjects]$ sudo R CMD check TextPreProcess
* using log directory ‘/home/hadoop/RProjects/TextPreProcess.Rcheck’
* using R version 2.15.1 (2012-06-22)
* using platform: x86_64-redhat-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for file ‘TextPreProcess/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘TextPreProcess’ version ‘1.0’
* checking package namespace information ... OK
* checking package dependencies ... ERROR
Packages required but not available:
‘RWeka’ ‘Snowball’ ‘lsa’ ‘plyr’ ‘snowfall’ ‘tau’ ‘tm’
See the information on DESCRIPTION files in the chapter ‘Creating R
packages’ of the ‘Writing R Extensions’ manual.
我经历了Writing R Extensions,但我无法获得很多关于如何解决我的问题的见解。
最佳答案
它现在正在工作。
我所做的是:
~/R/x86_64-redhat-linux-gnu-library/2.15
到 .libPaths(这就是我的 R 库所在的位置)R CMD check <pkg>
. build 了它。 R CMD build <pkg>
.安装了它。 R CMD INSTALL <tarball>
. 关于r - R CMD 检查错误 : Packages required but not available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14358814/