From ripley at stats.ox.ac.uk  Sat Jan 19 07:45:26 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sat, 19 Jan 2008 06:45:26 +0000 (GMT)
Subject: [Rd] a problem when i use JRI package in java
In-Reply-To: <d36c26c00801181905m4cc00707qc1967a561234607@mail.gmail.com>
References: <d36c26c00801181905m4cc00707qc1967a561234607@mail.gmail.com>
Message-ID: <alpine.LFD.1.00.0801190641260.23137@gannet.stats.ox.ac.uk>

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!
>
> --
> ?????
> 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


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