[Rd] inject html code into Rd file

Romain Francois romain at r-enthusiasts.com
Fri Apr 2 12:17:29 CEST 2010


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]{
	"<b>hello</b>"
}
}
}

when this file is rendered, instead of having "hello" in bold, I get 
<b>hello</b>, i.e. characters < and > are replaced with html entities : 
< and >

Is there a way to turn this off ?

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5



More information about the R-devel mailing list