[Rd] inject html code into Rd file

2010-04-02 Thread Romain Francois
Hello, I'm trying to inject html code into an Rd file. For example : \name{test} \alias{test} \title{test} \description{ \if{html}{ \Sexpr[stage=render,results=text,echo=FALSE]{ bhello/b } } } when this file is rendered, instead of having hello in bold, I get bhello/b, i.e. characters

Re: [Rd] inject html code into Rd file

2010-04-02 Thread Romain Francois
Le 02/04/10 13:07, Duncan Murdoch a écrit : On 02/04/2010 6:17 AM, Romain Francois wrote: Hello, I'm trying to inject html code into an Rd file. For example : \name{test} \alias{test} \title{test} \description{ \if{html}{ \Sexpr[stage=render,results=text,echo=FALSE]{ bhello/b } } } when this

Re: [Rd] inject html code into Rd file

2010-04-02 Thread Duncan Murdoch
On 02/04/2010 7:13 AM, Romain Francois wrote: Le 02/04/10 13:07, Duncan Murdoch a écrit : On 02/04/2010 6:17 AM, Romain Francois wrote: Hello, I'm trying to inject html code into an Rd file. For example : \name{test} \alias{test} \title{test} \description{ \if{html}{

Re: [Rd] as(1:4, numeric) versus as.numeric(1:4, numeric)

2010-04-02 Thread John Chambers
One more (final?) note on this example. A simpler change that would eliminate the inconsistent result from as(): 1. Change the warning on direct calls to coerce() to an error. 2. Move the caching of inherited methods to the actual dispatch code, so selectMethod() itself has no side effect.

Re: [Rd] as(1:4, numeric) versus as.numeric(1:4, numeric)

2010-04-02 Thread Hervé Pagès
Hi John, John Chambers wrote: The problem that you have exposed is that if one uses the *standard* form of selectMethod() on function coerce, this could corrupt the intended set of methods used by as(). Of course, no one was expected to do this, but it's not caught or warned (as opposed to a

[Rd] packages with DLLs under 2.12.0

2010-04-02 Thread Peter Ehlers
I realize that R-core must be busy with the imminent release of 2.11.0, so please consider this not urgent. The NEWS file for 2.12.0 (Windows-specific) says, in part: For now, 32-bit packages with compiled code built under 2.{10,11}.x can be used, but this will be disabled before release.

Re: [Rd] inject html code into Rd file

2010-04-02 Thread Duncan Murdoch
On 02/04/2010 8:06 AM, Duncan Murdoch wrote: On 02/04/2010 7:13 AM, Romain Francois wrote: Le 02/04/10 13:07, Duncan Murdoch a écrit : On 02/04/2010 6:17 AM, Romain Francois wrote: Hello, I'm trying to inject html code into an Rd file. For example : \name{test} \alias{test} \title{test}