Search code examples
javarrcaller

Rcaller 2.0 generated plot is rendering and empty output and the file (png) generated is also empty?


The Rcaller 2.0 generated plot is rendering an empty output and the file (png) generated is also empty? posting the link for the code i have used

http://stdioe.blogspot.in/2011/07/rcaller-20-calling-r-from-java.html

I used the code in the link specified above and the application runs fine but the output is a blank console without any graph plotted. It also creates a png file which is empty. am i missing something or are there any steps to be followed to eliminate the problem i am facing.

Thanks in advance..


Solution

  • Hii i got the output.

    solution: The work around i did was to install rjava in my R environment. It solved the problem.

    I think the rjava is required to be installed in your R environment even though you import the rcaller jar file.

    I perceived it as the R caller would just call the R environment but your R environment must have the rjava to do the rest of the work.

    If i am wrong please correct and a better explanation is welcomed...