Displaying 1 result from an estimated 1 matches for "lastwarn".
Did you mean:
last_arg
2005 Aug 22
1
Fetching Warning Messages
...org.rosuda.JRclient.*;
---------------------------RWarning.java-----------------------
class RWarning
{
public static void main(String args[])
{
try
{
String hostName = null;
hostName = args[0];
Rconnection c = new Rconnection(hostName);
c.voidEval("lastWarning <- NULL");
c.voidEval("withCallingHandlers(
{x<-sqrt(-9);y<-matrix(1:9,ncol=4);z<-sqrt(4)} , warning = function (w) {
lastWarning <<- paste(lastWarning,as.character(w))})"); //This will generate
warning message[sqrt(-9)], another warning message [ matrix(1...