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