自创包的包依赖关系

时间:2018-01-04 09:17:53

标签: r package

这个问题是关于自创的R软件包(在ubuntu 16.04上),导入中提到的软件包依赖关系没有安装。在线资源上提供的解决方案是,创建一个包含所有软件包的repo然后自我创建-created包从那里下载依赖项。我希望我的软件包能够安装CRAN的依赖软件包,而不是来自在线仓库。请看下面的输出:---- 我使用以下命令安装源包: -

install.packages(file.choose(),repos = NULL ,type="source")

以下错误显示: -

Installing package into ‘/home/piyush96/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘jsonlite’, ‘stringr’, ‘MODIStsp’, ‘sp’, ‘maptools’, ‘plyr’, ‘rgdal’ are not available for package ‘ModisLST’
* removing ‘/home/piyush96/R/x86_64-pc-linux-gnu-library/3.4/ModisLST’
Warning in install.packages :
  installation of package ‘/home/piyush96/Downloads/ModisLST_0.1.0.tar.gz’ had non-zero exit status

DESCRIPTION文件如下所示: -

Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
Imports: jsonlite,stringr,MODIStsp,sp,maptools,plyr,foreign,rgdal
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
Built: R 3.4.3; ; 2018-01-02 12:44:23 UTC; unix

如何在不进行回购或使用devtools的情况下让R自己从CRAN下载所有依赖项?

0 个答案:

没有答案