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

912 Views Asked by At

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..

2

There are 2 best solutions below

0
On BEST ANSWER

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...

2
On

rJava and RCaller are separate projects and you don't need to have rJava installed in order to use RCaller.

Only the R Package Runiversal is required and used by RCaller. Type

install.packages("Runiversal")

in R REPL and press enter before running RCaller. This is what you need.

If the generated R Code is invalid, RCaller will not handle the output or generated plots. You can also have a look at the generated code and output files in your os' temp directory.