R中的prcomp错误
我正在使用 R。我想在矩阵上运行 prcomp 。该代码在 Linux 机器上安装 R 时工作正常,但在不同 Linux 机器上安装另一相同(或我认为)的 R 时会中断。代码是
dataf = read.table("~/data/testdata.txt")
pca = prcomp(dataf)
错误实例上的错误消息是
> dataf = read.table("~/data/testdata.txt")
> pca = prcomp(dataf)
Error in La.svd(x, nu, nv) :
BLAS/LAPACK routine 'DGESDD' gave error code -12
R 的两个实例都有 R 版本 2.9.2 (2009-08-24)
并且据我所知,所有 R 库和环境变量也以相同的方式配置。
那么有人对可能出现的问题有建议吗?这个错误代码是什么意思? (我搜索了互联网,没有发现任何有用的东西......)提前非常感谢!
I am using R. I want to run prcomp
on a matrix. The code works fine with one installation of R on a Linux box but breaks on another identical (or so I thought) installation of R on a different Linux box. The codes are
dataf = read.table("~/data/testdata.txt")
pca = prcomp(dataf)
The error msg on the bad instance is
> dataf = read.table("~/data/testdata.txt")
> pca = prcomp(dataf)
Error in La.svd(x, nu, nv) :
BLAS/LAPACK routine 'DGESDD' gave error code -12
Both instances of R has R version 2.9.2 (2009-08-24)
and, as far as I can tell, all the R libraries and environmental variables are configured in identical ways as well.
So does anyone have suggestions on what might be wrong? What does that error code mean? (I searched internet and found nothing helpful...) Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的第二个盒子可能有损坏的 Blas / Lapack 安装。不幸的是,我们无法判断,因为您的问题不可重现。
这是对 Blas / Lapack 的另一个简单调用 - 这对您有用吗?
Your second box may have a broken Blas / Lapack installation. Unfortunately we cannot tell as you problem is not reproducible.
Here is another simple call to Blas / Lapack -- does this work for you?