[Rd] R CMD check and error in an \Sexpr in an Rd file

Duncan Murdoch murdoch.duncan at gmail.com
Thu Nov 3 15:28:36 CET 2011

On 03/11/2011 10:21 AM, Renaud Gaujoux wrote:
> Thank you Georgi.
> With the fix \long the output is indeed consistent with the documentation.
> I think my use of cat() worked by luck as its output should not have
> been rendered.
> Would a 'results=tex' (html, text) be possible? or 'results=source' that
> could be combined with \if{format}{text}?
> This would allow to generate custom Latex, or HTML code, but it might
> also be is hazardous...

Yes, that's possible.  See the manual, especially the section "2.12 
conditional text".

Duncan Murdoch

More information about the R-devel mailing list