Re: [Rd] best practice for packages using mclapply to avoid tcltk

2013-02-06 Thread Martin Maechler
> "PJ" == Paul Johnson > on Tue, 5 Feb 2013 22:25:01 -0600 writes: > On Sun, Feb 3, 2013 at 1:34 PM, Simon Urbanek > wrote: >> As Peter pointed out earlier, this is better addressed by >> disabling the Tcl/Tk event loop in forked processes. >> > Dear Simon:

Re: [Rd] best practice for packages using mclapply to avoid tcltk

2013-02-06 Thread peter dalgaard
On Feb 6, 2013, at 10:29 , Martin Maechler wrote: >> "PJ" == Paul Johnson >>on Tue, 5 Feb 2013 22:25:01 -0600 writes: > >> On Sun, Feb 3, 2013 at 1:34 PM, Simon Urbanek >> wrote: >>> As Peter pointed out earlier, this is better addressed by >>> disabling the Tcl/Tk event loop in fo

[Rd] slotName defined in object, present in instance, but inaccessible

2013-02-06 Thread Tim Triche, Jr.
from a package I'm writing ##setClass('Occupancy',contains="DataFrame", ## representation(states="StatesORNULL")) ## R> foo <- occupancy(pooledMethSegs) R> plotOccupancy(foo) Error in slot(object, "states") : no slot of name "states" for this object of class "Occupancy" R> sl

[Rd] How to NAMESPACE OS-specific importFrom?

2013-02-06 Thread Martin Morgan
I'd like to importFrom(parallel, mccollect, mcparallel) but on Windows these are not exported because this if(tools:::.OStype() == "unix") { export(mccollect, mcparallel, mc.reset.stream, mcaffinity) } appears at src/library/parallel/NAMESPACE:6 of svn r61857. So should I be doing if (tool

Re: [Rd] How to NAMESPACE OS-specific importFrom?

2013-02-06 Thread Prof Brian Ripley
On 07/02/2013 02:33, Martin Morgan wrote: I'd like to importFrom(parallel, mccollect, mcparallel) but on Windows these are not exported because this if(tools:::.OStype() == "unix") { export(mccollect, mcparallel, mc.reset.stream, mcaffinity) } appears at src/library/parallel/NAMESPACE:6 of