I am currently using R for Windows verison 3.5.3 and RStudio version 1.2.1335.
My goal is to import an ARFF dataset using the RWeka package in order to do some Association analysis, more specifically, to apply the Apriori algorithm.
I want to analyze a dataset (.ARFF) in R and, due to convenience, I am using the RWeka package, as my goal is to apply the Apriori algorithm, one of the associators available on that package.
That package requires some dependencies (RWekajars e rJava) and they were successfully installed.
However, when I try to run the script (I'll leave the script bellow), I always get an error related with one of the dependencies (onLoad failed in loadNamespace() for 'rJava'
).
Any guidance is appreciated.
Script
library(rJava)
library(RWeka)
x <- read.arff(system.file("arff", "movies_2.arff", package = "RWeka"))
Apriori(x)
Apriori(x, Weka_control(N = 20))
Errors:
library(RWeka)
Error: package or namespace load failed for ‘RWeka’: .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/USER/Documents/R/win-library/3.5/rJava/libs/x64/rJava.dll':
LoadLibrary failure: %1 is not a valid Win32 application.
x <- read.arff(system.file("arff", "movies_2.arff", package = "RWeka")) Error in read.arff(system.file("arff", "movies_2.arff", package = "RWeka")) : could not find function "read.arff"
Apriori(x) Error in Apriori(x) : could not find function "Apriori"
Apriori(x, Weka_control(N = 20)) Error in Apriori(x, Weka_control(N = 20)) : could not find function "Apriori"