handle_message + handle_warning

Hey I tried something.
Ahah. Ok thanks. Let me redo it



> On Oct 21, 2014, at 8:12 PM, Thomas Kluyver <notifications@github.com> wrote:
> 
> In R/execution.r:
> 
> > @@ -82,12 +88,30 @@ execute = function(request) {
> >          dev.off()
> >          display_png(filename=tf)
> >      }
> > +    handle_message = function(o){    	
> > +    	out <- sub("^simpleMessage in message","", o)
> > +    	open <- gregexpr("\\(", out)[[1]]
> > +    	first <- open[1]
> > +    	close <- gregexpr("\\)", out)[[1]]
> Even R is not so crazy that we need to resort to regexes to do this. Condition objects - at least messages and warnings - seem to have an obj$message attribute that we can use.
> 
> —
> Reply to this email directly or view it on GitHub.