Let's start by installing the different packages.
J48 is the implementation of C4.5 in Weka. It is readily available to R users through the RWeka
package. Let's start by downloading and installing RWeka
:
install.packages("RWeka"); library(RWeka)
This should work fine if the Java version (32 or 64 bit) matches the version of R that you are running. If the JAVA_HOME cannot be determined from the Registry error occurs, please install the correct Java version as explained at http://www.r-statistics.com/2012/08/how-to-load-the-rjava-package-after-the-error-java_home-cannot-be-determined-from-the-registry/. The package discussed is the rJava
package, but the advice given should work just fine for issues with RWeka
too.