Hi
I am trying to adapt some code from the SPMF library, specifically one package, but I am running into problems. There are several examples that the library provide that either print to screen or to outfile. I am attempting to alter these to return a list. The method that I wish to output prints to the screen okay, but when I try to output the list it fails. I think I am messing up with the method types in the second class method, 'MainTestCPTPlus2'.
Specifically, i have a method in a second class 'MainTestCPTPlus2' that calls a method from another class 'SequenceStatsGenerator2'
There are no visible errors when developing the code in Eclipse, but when I call it in R I get the following error that the method is not recognised suggesting that the Java code is incorrect .
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.NoSuchMethodException: MainTestCPTPlus2.getStats()
I'm sorry, I have been unable to add the relevant code to the question as it must have some forbidden words, hence "Post denied", but I have added the code to github: github(dot)com/david-p1/test. The readme has the original question and code, as well as the full java package.
thanks, david
(ps I did strip out all webpage links and text just leaving the code before I tried to submit the question but it was denied)