我创建了一个 R 包。这个包的DESCRIPTION
文件如下:
Package: Ralgotree
Type: Package
Title: package about securiy information
Version: 1.0
Date: 2013-02-15
Author: algotree
Maintainer: algotree<dinoop@algotree.com>
Description: package about securiy information
License: GPL(>=2)
Suggests: RJSONIO,stringr,RSQLite,bigmemory,Rook,compare,plyr,lubridate,xts
Depends: RJSONIO,stringr,RSQLite,bigmemory,Rook,compare,plyr,lubridate,xts
它取决于其他软件包RJSONIO
,stringr
等等。所以每当我尝试使用以下命令在其他机器上安装我的软件包时
R CMD build Ralgotree
R CMD INSTALL Ralgotree
它显示以下错误消息:
* installing to library ‘/usr/local/lib/R/site-library’
ERROR: dependencies ‘RJSONIO’, ‘stringr’, ‘RSQLite’, ‘bigmemory’, ‘Rook’, ‘compare’, ‘plyr’, ‘lubridate’, ‘xts’ are not available for package ‘Ralgotree’
所以我需要像这样安装所有软件包install.packages("RJSONIO")
。
R CMD INSTALL Ralgotree
运行命令时是否可以安装所有已卸载的软件包?谢谢