I tried to install RWeka but failed as rJava couldn’t be installed mainly because Java is installed in a non-conventional location. Below is quick summary of installing/loading these packages.
For installation, JAVA_HOME should be updated and the following has been done under the root account - it is found here
The modified Java paths are shown below.
However rJava couldn’t be loaded with the followign error.
After some googling, a remedy was found by creating the java.conf file - it is found here.
In the Vim editor, the followign two lines are added.
Finally the configuration has been executed by following.
After that it was possible to install and load these packages.