简体   繁体   中英

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.

It passes every R CMD check --as-cran , and I have been able to install it in Ubuntu, and Windows without any problem. 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:

** 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.

Two questions,

  1. Can anyone think a reason on why my package should not be compatible with 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.
  2. Could anyone try to install it on OS X to see if it works? (I don't have more Macs available in my circle), it might be a particular problem of the system I have available.

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 . 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.

您应该能够下载并安装最新版本的sp ,然后从源代码而不是二进制软件包下载并安装raster

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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