在OSX Mavericks上安装新的R编译版本时,遇到了安装一些软件包的困难。例如,
在我的Windows系统中,这两个软件包都已经成功安装到了R 3.1.1上,所以这是Mavericks/OSX版本的问题还是我的构建存在问题?更改库存储库并没有任何影响。我尝试从二进制文件构建,但例如在 rgeos主页 上它指出 "OS X Mavericks binaries: r-release: not available" 所以我陷入困境。
感谢您提供建议。
rgeos
和rgdal
都会返回以下结果:package 'rgeos' is available as a source package but not as a binary
Warning in install.packages :
package 'rgeos' is not available (for R version 3.1.1)
在我的Windows系统中,这两个软件包都已经成功安装到了R 3.1.1上,所以这是Mavericks/OSX版本的问题还是我的构建存在问题?更改库存储库并没有任何影响。我尝试从二进制文件构建,但例如在 rgeos主页 上它指出 "OS X Mavericks binaries: r-release: not available" 所以我陷入困境。
感谢您提供建议。
编辑:
尝试@Andrie的建议:
> install.packages('rgeos', type='source')
Installing package into ‘/Users/robinedwards/Library/R/3.1/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.ma.imperial.ac.uk/src/contrib/rgeos_0.3-6.tar.gz'
Content type 'application/x-gzip' length 240510 bytes (234 Kb)
opened URL
==================================================
downloaded 234 Kb
* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: clang
configure: CXX: clang++
configure: rgeos: 0.3-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 450
checking geos-config usability...
./configure: line 2056: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package ‘rgeos’
* removing ‘/Users/robinedwards/Library/R/3.1/library/rgeos’
Warning in install.packages :
installation of package ‘rgeos’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/_s/ppznw4sx7p51kwv__hj3d8540000gn/T/RtmpK40xj7/downloaded_packages’
并附上构建页面的截图:
install.packages(..., type="source")
吗?同时请参考构建页面 http://cran.r-project.org/web/checks/check_results_rgeos.html。 - Andrie