0
還有一個類似的問題(How do I install an older R package?),但在我的實例中,bigRF安裝,但是當我嘗試加載它時出現錯誤。有趣的是,另一個SO帖子表明bigRF只適用於以前版本的R,而錯誤是說我需要比當前版本(3.0.2)更高版本的r(3.1)。bigRF要求R版本3.1
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’
想法如何解決?
您是否嘗試從源代碼安裝? –