我在安装RJSONIO时遇到了一些麻烦。 install.packages告诉我该软件包不适用于我的R版本。我可以手动下载二进制文件并安装,但后来我无法使用该库,因为它“未安装为'arch = x64'”
的解决方法?
> 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'
答案 0 :(得分:6)
如果安装了相应的工具,请尝试从源代码构建它。
install.packages("RJSONIO", repos = "http://www.omegahat.org/R", type = "source")