Displaying 1 result from an estimated 1 matches for "rwarning2".
Did you mean:
warning2
2005 Aug 22
1
Fetching Warning Messages
...da.JRclient.Rconnection.eval(Rconnection.java:190)
at RWarning.main(RWarning.java:13)
In other words, when I use "last.warning" in eval method, I simply get an
exception, instead of value of last.warning.
Below is the java code of using warnings() function.
------------Code of RWarning2.java----------------
import org.rosuda.JRclient.*;
class RWarning2
{
public static void main(String args[])
{
try
{
String hostName = null;
hostName = args[0];
Rconnection c = new Rconnection(hostName);
System.out.println(c.eval("x<-sqrt(-9)").asString());
Sy...