user1220
user1220

Reputation: 11

error in installing RWeka package in R

After getting RWeka package is sucessfully unpacked, when command library("RWeka") is executed it is showing an error:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname) error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures. In addition: Warning message: package ‘RWeka’ was built under R version 3.2.3 Error: package or namespace load failed for ‘RWeka’

Upvotes: 0

Views: 3282

Answers (2)

Manish
Manish

Reputation: 1

If your system is 32 bit, get yourself a 32-Bit java. If the system is 64-Bit go for 64bit java. I faced the same issue as my system is 64-Bit and i accidentally installed 32-Bit java. Uninstalled and reinstalled a 64-bit. Sorted now.

Upvotes: 0

ti7
ti7

Reputation: 18816

As the error states, make sure you have Java installed of the same architecture as R. For example if you have 32-bit R, you need to have 32-bit Java installed.

Upvotes: 2

Related Questions