[英]Installing newly developed R package in mac OS X el Capitan
I just developed and released a package called DiversityOccupancy
(version 1.0.2) in CRAN. 我刚刚在CRAN中开发并发布了一个名为
DiversityOccupancy
(版本1.0.2)的软件包。
It passes every R CMD check --as-cran
, and I have been able to install it in Ubuntu, and Windows without any problem. 它通过了
R CMD check --as-cran
,我已经能够在Ubuntu和Windows上毫无问题地安装它。 However, when I tried to install it on a Mac running OS X 10.11.2 El Capitan, it could not install it from CRAN, and the message I got was: 但是,当我尝试在运行OS X 10.11.2 El Capitan的Mac上安装它时,它无法从CRAN安装它,并且得到的消息是:
** preparing package for lazy loading Error : object 'plot' is not exported by 'namespace:raster'
**为延迟加载准备软件包错误:“名称空间:栅格”未导出对象“图”
however I checked, and that is on the NAMESPACE
file in the Source. 但是我检查了一下,该文件位于Source中的
NAMESPACE
文件中。
Two questions, 两个问题
After some research I found that the raster package also has an error in the mavericks version of R https://cran.r-project.org/web/checks/check_summary.html . 经过一番研究,我发现,光栅包也有小牛版R的错误https://cran.r-project.org/web/checks/check_summary.html 。 That is, if a package that your own package depends on can't be installed in a version of R, it will be impossible for your own package to be installed correctly.
也就是说,如果无法在R版本中安装您自己的软件包所依赖的软件包,则不可能正确安装您自己的软件包。
您应该能够下载并安装最新版本的sp
,然后从源代码而不是二进制软件包下载并安装raster
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.