Re: [R] call function immediately before plot.new()

2008-04-28 Thread Jake Michaelson
> setHook("plot.new", function(...) cat("Starting plot\n")) > > > On Mon, Apr 28, 2008 at 9:22 AM, Jake Michaelson > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I would like to be able to call a custom function automatically before >

[R] call function immediately before plot.new()

2008-04-28 Thread Jake Michaelson
Hi all, I would like to be able to call a custom function automatically before plot.new() is called (more specifically, before a new plot is created on the current graphics device). Recently I've been poking around in the help files of some of the low(er) level plotting functions, and I seem to r

[R] writeBin doesn't "send" until readBin executed

2008-01-23 Thread Jake Michaelson
Hi all - I'm playing around with an attempt to do some serial communication from within R to a microcontroller board. I open a connection: zz = file("/dev/ttyUSB0",open="a+") ## text mode ... when I execute writeLines("0",con=zz) I know the board receives the "0" because the board's serial co