On Apr 12, 2011, at 18:24 , Jeffrey Horner wrote:
> I was writing Rd documentation for a new package when I came across
> this issue. Here's the smallest example:
>
>> library(tools)
>> cat("\\examples{x <- '<%=rnorm(1)%>'}\n",file=file.path(tempdir(),'test.Rd'))
>> readLines(file.path(tempdir()
Thanks for setting me straight, Kurt.
Problem solved.
Jeff
On Tue, Apr 12, 2011 at 11:29 AM, Kurt Hornik wrote:
>> Jeffrey Horner writes:
>
> % is the Rd comment character, and almost always needs to be escaped.
>
> Best
> -k
>
>> I was writing Rd documentation for a new package when I came
I was writing Rd documentation for a new package when I came across
this issue. Here's the smallest example:
> library(tools)
> cat("\\examples{x <- '<%=rnorm(1)%>'}\n",file=file.path(tempdir(),'test.Rd'))
> readLines(file.path(tempdir(),'test.Rd'))
[1] "\\examples{x <- '<%=rnorm(1)%>'}"
> parse_R