First I installed rJava successfully.
> install.packages("rJava")
the console read:
Installing package into ‘C:/Users/mlrob/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rJava_0.9-10.zip'
Content type 'application/zip' length 726859 bytes (709 KB)
downloaded 709 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
Then I installed RWeka successfully (I thought)
>Install.packages("RWeka")
The console read:
The downloaded binary packages are in
C:\Users\mlrob\AppData\Local\Temp\RtmpkxMbwA\downloaded_packages
But I was unable to use RWeka. I typed in
>library(RWeka)
console returned this discouraging message:
Error: package or namespace load failed for ‘RWeka’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
In addition: Warning message:
package ‘RWeka’ was built under R version 3.4.4
Thank you for any advice on how to fix this.
0 Upvotes
ReplyUnfollow this discussion