[rkward-devel] altering rk.graph.on and rk.graph.off

Stefan Rödiger stefan_roediger at gmx.de
Tue Aug 31 00:23:44 UTC 2010


Hi Prasenjit,

I simply love the stuff you do. Never thought of it, now I won't miss it. It 
is so convenient, smart and useful.
Thomas asked for feedback some weeks ago which I will try to address later.
One stupid question. Right now it is possible to copy the preview plot to the 
output. I wonder if it is possible to embed the corresponding code too (since 
the user might be used to that in RKWard behaviour in RKWard)?

Regards
Stefan

Am Samstag 28 August 2010, 03:22:44 schrieb Prasenjit Kapat:
> Hi,
> 
> I've modified the rk.graph.on () and rk.graph.off () functions
> slightly in trunk. Since many might be using these functions (as it is
> used in a lot of plugins), here is a little explanation:
> 
> As you may know, in R, after dev.off () closes the current device,
> dev.next () is set as active. This applies to RKWard as well. But,
> when
> 
> rk.graph.on (); ....; rk.graph.off (); # dev.off () is called inside
> rk.graph.off ()
> 
> is executed (in some form or the other), dev.next () is not
> necessarily the device that was active before rk.graph.on () was
> called. This creates a little confusion (at least to me, see [1]
> below) especially when copying a device to output via "Device > Copy
> device to output." Hence the fix.
> 
> For those following the trunk, let me know if you see any regressions
> or non-intuitive behavior. Of course, this only affects rk.graph.on
> and rk.graph.off and DOES NOT alter the usual (R's) behavior of
> dev.off ().
> 
> Regards,
> --
> Prasenjit
> 
> [1]
> x11 ()
> plot (0,0)
> x11 ()
> plot (1:10,1:10)
> dev.copy (device = rk.graph.on); rk.graph.off ()
> dev.off (); # closes the wrong device, w/o the fix.
> 
> ---------------------------------------------------------------------------
> --- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> RKWard-devel mailing list
> RKWard-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rkward-devel





More information about the Rkward-devel mailing list