From mtmorgan at fhcrc.org  Thu Feb  7 03:33:31 2013
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Wed, 06 Feb 2013 18:33:31 -0800
Subject: [Rd] How to NAMESPACE OS-specific importFrom?
Message-ID: <5113127B.9050407@fhcrc.org>

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 (tools:::.OStype() == "unix") {
     importFrom(parallel, mccollect, mcparallel)
}

in my NAMESPACE? I have a recollection that this has come up before, perhaps 
even in the parallel package, but I'm not able to find anything.

Thanks,

Martin Morgan
-- 
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793



[Rd] How to NAMESPACE OS-specific importFrom?
Martin Morgan