使用Win7 64位上的rJava包和R我正在嘗試rJava在Win 7 64位的計(jì)算機(jī)上安裝。我跑的時(shí)候install.packages("rJava")一切似乎都很好:Installing package(s) into ‘C:/Users/djq/Documents/R/win-library/2.13’(as ‘lib’ is unspecified)trying URL 'http://software.rc.fas.harvard.edu/mirrors/R/bin/windows/contrib/2.13/rJava_0.9-1.zip'Content type 'application/zip' length 654936 bytes (639 Kb)opened URL
downloaded 639 Kb
package 'rJava' successfully unpacked and MD5 sums checked
The downloaded packages are in
C:\TEMP\RtmpW2eAUw\downloaded_packages但是當(dāng)我嘗試加載庫時(shí),library(rJava)我收到以下錯(cuò)誤:Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/me/Documents/R/win-library/2.13/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
Error: package/namespace load failed for 'rJava'我已經(jīng)安裝了Java JRE(嘗試32位和64位版本)和JDK(使用32位和64位)。我的R版本是R version 2.13.1 (2011-07-08),我正在使用RStudio。如果我嘗試使用32位R,我可以正常加載rJava。問題就是rJava不能在R 64位中運(yùn)行嗎?如何確定包是否僅適用于32而不是64?編輯:剛發(fā)布R.version():> R.Version()$platform[1] "x86_64-pc-mingw32"$arch[1] "x86_64"$os[1] "mingw32"$system[1] "x86_64, mingw32"$status[1] ""$major[1] "2"$minor[1] "13.1"$year[1] "2011"$month[1] "07"$day[1] "08"$`svn rev`[1] "56322"$language[1] "R"$version.string[1] "R version 2.13.1 (2011-07-08)"
- 3 回答
- 0 關(guān)注
- 868 瀏覽
添加回答
舉報(bào)
0/150
提交
取消