From bbolker at gmail.com  Mon Oct  5 01:34:50 2015
From: bbolker at gmail.com (Ben Bolker)
Date: Sun, 4 Oct 2015 23:34:50 +0000
Subject: [Rd] Conditional importFrom (roxygen?)
References: <CABG0rfu+kdrgWsyQPyJf-Twm2ostSCsMi7vbzR5br9LoPtmbLw@mail.gmail.com>
	<5611526D.7080508@gmail.com>
Message-ID: <loom.20151005T013053-407@post.gmane.org>

Duncan Murdoch <murdoch.duncan <at> gmail.com> writes:

> 
> On 04/10/2015 10:10 AM, Jonathan Greenberg wrote:
> > Folks:
> > 

[snip snip snip]

> > 
> > Is there a way to do a conditional importFrom based on the OS?  Or can I
> > safely ignore this (I'm trying to submit to CRAN).
> > 
> 
> Yes, you can put conditionals into the NAMESPACE file.  Apparently
> roxygen2 doesn't support this feature, so you'll have to do it by hand.
> 
> Duncan Murdoch
> 
> 

This has been submitted as an issue at

https://github.com/klutometis/roxygen/issues/378

closely related:

https://github.com/klutometis/roxygen/issues/371

my current hacky solution to this is to use a Makefile that
post-processes the NAMESPACE after it's roxygenized, e.g. search
for "getRversion" in

https://github.com/glmmTMB/glmmTMB/blob/master/Makefile



[Rd] Conditional importFrom (roxygen?)
Ben Bolker