2011-05-17 92 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