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