我一直在尝试从源代码安装 R 包 Kernlab,但我遇到了问题。起初,我遇到了一些与 gfortran 相关的错误,所以我从http://r.research.att.com/tools/下载了 GNU fortran 编译器
然后当我输入以下命令时: R CMD INSTALL kernlab_0.9-12.tar.gz
我收到以下错误:
installing to /Library/Frameworks/R.framework/Versions/2.13/Resources/library/kernlab/libs/x86_64
** R
** data
** inst
** preparing package for lazy loading
Error in .walkClassGraph(ClassDef, "contains", where, attr(ext, "conflicts")) :
the "superClass" list for class "list", includes an undefined class "input"
Error in .walkClassGraph(ClassDef, "contains", where, attr(ext, "conflicts")) :
the "superClass" list for class "numeric", includes an undefined class "output"
Error : evaluation nested too deeply: infinite recursion / options(expressions=)?
Error in setClassUnion("listI", c("list", "numeric", "vector", "integer", :
unable to create union class: could not set members "list", "numeric"
Error : unable to load R code in package 'kernlab'
ERROR: lazy loading failed for package ‘kernlab’
* removing ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/kernlab’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/kernlab’
有谁知道如何解决这个错误?PS。对于我下载的 GNU fortran 编译器,它说是针对最高 3.2.5 的 Xcode 版本;我有 Xcode 版本 3.2.6。这是我错误的根源,还是我看错了方向?