[英]Error: package 'lsei' is not installed for 'arch=x64'
I have recently upgraded from R 2.9 (I think) to R 2.13 on my Windows 7 machine. 我最近在我的Windows 7机器上从R 2.9(我认为)升级到R 2.13。 Since the upgrade, I've been having problem loading the following package (lsei.zip).
自升级以来,我一直在加载以下软件包时遇到问题(lsei.zip)。
http://www.stat.auckland.ac.nz/~yongwang/ http://www.stat.auckland.ac.nz/~yongwang/
> utils:::menuInstallLocal()
package 'lsei' successfully unpacked and MD5 sums checked
> library(lsei)
Error: package 'lsei' is not installed for 'arch=i386'
I have read some thread on Stackoverlow and other R-help forums but their answer doesn't seem to resolve my problem. 我已经阅读了Stackoverlow和其他R-help论坛上的一些帖子,但他们的答案似乎并没有解决我的问题。 (eg removing an older copy or re-install all the packages)
(例如删除旧版本或重新安装所有软件包)
Nevertheless, I have been able to install and load the package successfully on my Mac machine. 不过,我已经能够在我的Mac机器上成功安装和加载包。 So I think it should be something associated with Windows but not sure what it is.
所以我认为它应该是与Windows相关的东西,但不确定它是什么。
Much appreciated if someone can point me to the right direction and help me resolve this issue. 非常感谢有人能指出我正确的方向并帮助我解决这个问题。
Thanks in advance. 提前致谢。 MK
MK
The problem with the lsei
Windows binary is probably that it was built using an old version of R and is no longer compatible with more recent versions of R. When having similar problems in the future, if the source code is available (which it is in this case, at the link you provided), you can just build the binary from source yourself. lsei
Windows二进制文件的问题可能是它是使用旧版本的R构建的,并且不再与更新版本的R兼容。如果将来有类似的问题,如果源代码可用(它是在在这种情况下,在您提供的链接上),您可以自己从源代码构建二进制文件。 See: http://cran.r-project.org/doc/manuals/R-exts.html#Checking-and-building-packages . 请参阅: http : //cran.r-project.org/doc/manuals/R-exts.html#Checking-and-building-packages 。 To build a binary on Windows, you'll need Rtools .
要在Windows上构建二进制文件,您需要Rtools 。
It's a good exercise to go ahead and learn how to build binaries from source. 继续学习如何从源代码构建二进制文件是一个很好的练习。 From your comments above, it seems you tried that but are still having problems.
从您上面的评论来看,您似乎已经尝试过,但仍然遇到问题。 For convenience, a Windows binary of the
lsei
package built under R 2.15.0 is available here: http://commondatastorage.googleapis.com/jthetzel-public/lsei_1.0-2.zip . 为方便起见,可以在此处获得在R
lsei
下构建的lsei
软件包的Windows二进制文件: http : lsei
。 It works for me on both i386 and x64 R 2.15.0 for Windows. 它适用于i386和x64 R 2.15.0 for Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.