bigRF要求R版本3.1

时间:2014-03-05 19:11:29

标签: r package random-forest

有一个类似的问题(How do I install an older R package?),但在我的实例中,bigRF安装,但是当我尝试加载它时出现错误。有趣的是,另一个SO帖子表明bigRF仅适用于以前版本的R,而错误是说我需要r(3.1)的未来版本而不是当前版本(3.0.2)。

library(bigrf)
Loading required package: bigmemory
Loading required package: bigmemory.sri
Loading required package: BH
bigmemory >= 4.0 is a major revision since 3.1.2; please see packages
biganalytics and and bigtabulate and http://www.bigmemory.org for more information.
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so': dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.1/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigrf/libs/bigrf.so
Reason: Incompatible library version: bigrf.so requires version 3.1.0 or later, but libR.dylib provides version 3.0.0
In addition: Warning message:
package ‘bigrf’ was built under R version 3.1.0 
Error: package or namespace load failed for ‘bigrf’

关于如何解决的想法?

1 个答案:

答案 0 :(得分:0)

是的,看起来像install.packages("bigrf", type="source")有效。