From murdoch at stats.uwo.ca  Thu Apr  1 21:12:33 2010
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Thu, 01 Apr 2010 15:12:33 -0400
Subject: [Rd] Difference Linux / Windows
In-Reply-To: <4BB3CEFD.2080302@userprimary.net>
References: <4BB3ACBF.8040409@u-paris10.fr> <4BB3CEFD.2080302@userprimary.net>
Message-ID: <4BB4F021.8000402@stats.uwo.ca>

On 31/03/2010 6:38 PM, Seth Falcon wrote:
> On 3/31/10 1:12 PM, Christophe Genolini wrote:
> > Hi the list,
> > I am writing a package that happen to not be compatible with linux
> > because I did not know that the function "savePlot" was available only
> > on windows. Is there a list of "incompatible" function? How can I get
> > this kind of information?
>
> One way is to obtain a copy of the R sources and then grep the Rd files 
> for '#ifdef'.
>
> I don't claim this is convenient.
>
> There has been discussion, and I believe general consensus, that we'd 
> like to eliminate the conditional documentation.  This requires editing 
> the Rd files to make the contents sensible (you can't just remove the 
> #ifdef's).  Patches along these lines would be welcome.

Producing those patches would be a lot of work even to incorporate, let 
alone write.  Another possibility is some sort of markup in the display 
to indicate platform-specific bits.  That would be a lot easier to 
implement; the hard part is the design. 

We have to design for 4 different output formats:  LaTeX, HTML, plain 
text, and executable example code.  We need to design for help files 
that display differently on different platforms, and for help files that 
only exist on a subset of the platforms.

Duncan Murdoch



[Rd] Difference Linux / Windows
Duncan Murdoch