[Rd] a problem when i use JRI package in java

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jan 19 07:45:26 CET 2008


On Sat, 19 Jan 2008, 文波胡 wrote:

>   I used JRI package in java to connect R ,and want to use R do some work
> fo me.
> but most thing is ok, but there is a problem for me

The best thing to do is to ask the maintainer, as the posting guide 
suggests.  Very few of us will be using JRI (or even know Java).

> these is some code of the program:
>
>               re.eval("library(lattice)");
>              y=re.idleEval("print(1:10)");
>              y=re.eval("feq <- read.delim('c:/minist.txt',header=T)");
>              y=re.eval("feq1<-as.matrix(feq)");
>              System.out.println(y=re.eval("feq1[1,]"));
>              y=re.eval("jpeg()");
>              y=re.eval("levelplot(feq1)");
>              re.eval("dev.off()");
>              re.end();
>              System.out.println("end");
>
> in these codes i load package   lattice to plot my data ,but  i cann't  get
> a right picture, the picture created is empty .
> it looks like   this code is not run rightly: y=re.eval("levelplot(feq1)");

See the R FAQ Q7.22: I think this is likely another example of a missing 
print() call.

> can some one  help me thanks!
>
> --
> ???IJ?
> TEL:
>
>
>
> E-MAIL:bbbiiiooo at 163.com
>            huwenb at gmail.com
>
> 	[[alternative HTML version deleted]]

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-devel mailing list