2011-05-17 84 views
2

我在安装RJSONIO时遇到了一些问题。 install.packages告诉我该软件包不适用于我的R版本。我可以手动下载二进制文件并进行安装,但是我无法使用该库,因为它“未安装'arch = x64'”无法安装RJSONIO库

解决方法?

> install.packages('RJSONIO') 
Installing package(s) into ‘C:/R/site-library’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    package ‘RJSONIO’ is not available (for R version 2.13.0) 
> 
> install.packages("C:\\downloads\\RJSONIO_0.7-2.zip" , repos = NULL) 
Installing package(s) into ‘c:/R/site-library’ 
(as ‘lib’ is unspecified) 
package 'RJSONIO' successfully unpacked and MD5 sums checked 
> 
> library(RJSONIO) 
Error: package 'RJSONIO' is not installed for 'arch=x64' 

回答

6

如果您安装了适当的工具,请尝试从源代码构建它。

http://www.omegahat.org

install.packages("RJSONIO", repos = "http://www.omegahat.org/R", type = "source") 
+0

的感谢!这让我走上了正确的轨道......我需要让我的64位编译器设置 – SFun28 2011-05-17 20:47:27

+0

适用于Windows的Rtools站点:http://www.murdoch-sutherland.com/Rtools/ – 2011-05-17 21:44:55

+0

@DWin - yup ... just必须通过环境变量等工作 – SFun28 2011-05-18 02:29:35