[英]Executing library(package) in R reports that package was built for i386, can it be installed on an x86_64 system?
I'm attempting to use an add-on R package UBbipl but am unable to add it as a library from within R once installed. 我正在尝试使用附加的R包UBbipl,但是一旦安装后就无法从R内将其添加为库。 Executing
library(UBbipl)
returns 执行
library(UBbipl)
返回
Error: package ‘UBbipl’ was built for i386-pc-mingw32
The README (see here ) for the package states that i386 and x86_64 architectures are supported. 程序包的自述文件(请参阅此处 )指出支持i386和x86_64体系结构。 I've consulted tutorials on creating packages (amongst other things) but I don't know enough about R (or its packages) to diagnose the problem (I think).
我已经咨询了有关创建软件包的教程(以及其他内容),但是我对R(或其软件包)的了解还不足以诊断问题(我认为)。
R.Version()$arch
returns x86_64
, I'm running R version 2.14.1 and Sys.info()
confirms this architecture for my machine, as well as the fact that I'm running Linux. R.Version()$arch
返回x86_64
,我正在运行R版本2.14.1,而Sys.info()
确认了我的计算机的这种体系结构,以及我正在运行Linux的事实。 To install it I created a tar.gz file from the zip file and ran R CMD INSTALL UBbipl_1.0.tar.gz
as root. 要安装它,我从zip文件中创建了一个tar.gz文件,并以root用户身份运行
R CMD INSTALL UBbipl_1.0.tar.gz
。 This completes successfully, reporting 这成功完成,报告
* installing to library ‘/usr/local/lib/R/site-library’
* installing *binary* package ‘UBbipl’ ...
* DONE (UBbipl)
I used the --no-multiarch
and --arch x86_64
options but this has not effect on the error message. 我使用了
--no-multiarch
和--arch x86_64
选项,但这对错误消息没有影响。 Additionally, the README states that one should 此外,自述文件还指出
Download and save the appropriate version of UBbipl to your computer.
将适当的UBbipl版本下载并保存到您的计算机中。 Then Install the package from within R.
然后从R中安装软件包。
but there is only one file available for download (see previous link) so I'm unsure as to whether I'm doing something wrong or if I require a different package. 但只有一个文件可供下载(请参阅上一个链接),因此我不确定我做错了什么还是需要其他软件包。 It would be great if someone could point me in the right direction.
如果有人能指出我正确的方向,那就太好了。
Many thanks. 非常感谢。
I'm going to answer my own question to close it. 我将回答我自己的问题以将其关闭。 themel technically provided the answer in the comments.
themel从技术上在评论中提供了答案。 The R package is a Windows binary package built for Windows.
R软件包是为Windows构建的Windows二进制软件包。 The source package was not provided and I was thus unable to use it in R on a linux machine.
没有提供源软件包,因此我无法在Linux机器上的R中使用它。
The file 文件
http://www.wiley.com/legacy/wileychi/gower/supp/UBbipl_3.0.4.tar.gz http://www.wiley.com/legacy/wileychi/gower/supp/UBbipl_3.0.4.tar.gz
seems to be a standard R source file, with no complied elements. 似乎是一个标准的R源文件,没有任何元素。 It has the first Fortran program source I've seen in twenty years, but ought to work.
它具有二十年来我见过的第一个Fortran程序源,但是应该可以使用。 It certainly installed fine with R CMD INSTALL UBbipl_3.0.4.tar.gz once the two dependencies I did'nt already have - 'rgl' and 'numDeriv' were installed.
一旦安装了我没有的两个依赖项-'rgl'和'numDeriv',它肯定会与R CMD INSTALL UBbipl_3.0.4.tar.gz一起安装。
Regards, Anthony Staines 问候,安东尼·斯坦斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.