简体   繁体   English

在Mac OS X el Capitan中安装新开发的R软件包

[英]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, 两个问题

  1. Can anyone think a reason on why my package should not be compatible with mac? 谁能想到我的软件包为何不与Mac兼容的原因? if you see the check link in CRAN https://cran.r-project.org/web/checks/check_results_DiversityOccupancy.html It seemed that it passed every check in OS X El Capitan. 如果您在CRAN https://cran.r-project.org/web/checks/check_results_DiversityOccupancy.html中看到检查链接,似乎它在OS X El Capitan中通过了所有检查。
  2. Could anyone try to install it on OS X to see if it works? 有人可以尝试将其安装在OS X上以查看其工作原理吗? (I don't have more Macs available in my circle), it might be a particular problem of the system I have available. (我圈子中没有更多可用的Mac),这可能是我可用的系统的一个特殊问题。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM