[R] Problem of running R console from Java on linux box

ZhaoWei wzhao1984 at gmail.com
Mon Nov 3 02:59:36 CET 2008


Get it done. Big thank, Brian and Martin!


From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
Subject: Re: [R] Problem of running R console from Java on linux box
Date: Sun, 2 Nov 2008 11:07:24 +0000 (GMT)

> On Sun, 2 Nov 2008, ZhaoWei wrote:
> 
> > Great, "--vanilla" works!
> > Can you please tell me what this parameter means?
> > And, it works with the execuatble(/usr/lib/R/bin/exec/R). I'm wondering
> > is it possible to do the same with the shell script(/usr/bin/R), anyway
> > when you type "R" in command line, it means the shell script.
> 
> It is intended for running the shell script, and it is documented in the 
> most basic manual ('An Introduction to R'), with which you ought to become 
> familiar.
> 
> >
> > Thanks again!
> >
> >>> Hi the list:
> >>>
> >>>   I can not create R process from Java application with my linux box,
> >>> the process never was created, or just terminated immediately after I
> >>> called Runtime.getRuntime().exec(...)
> >>>
> >>
> >> Did you check the error stream? I think you want to start R with a
> >> command line argument like "--vanilla", without /bin/sh.
> >>
> >> Martin
> >>
> >>>   The command lines I have tried are(the paths are all correct):
> >>>
> >>>   "/bin/sh /usr/bin/R"
> >>>   "/bin/sh -c /usr/bin/R"
> >>>   "/usr/lib/R/bin/exec/R"(also set R_HOME=/usr/lib/R)
> >>>
> >>>   I also tried ProcessBuilder, which is no help. I'm confused, is this
> >>> possible?
> >>>
> >>> Many Thanks!
> >>>
> >>> ______________________________________________
> >>> R-help at r-project.org mailing list
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
> >>
> >> --
> >> Martin Morgan
> >> Computational Biology / Fred Hutchinson Cancer Research Center
> >> 1100 Fairview Ave. N.
> >> PO Box 19024 Seattle, WA 98109
> >>
> >> Location: Arnold Building M2 B169
> >> Phone: (206) 667-2793
> >
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> 
> -- 
> 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-help mailing list