[NTG-context] Writing a ConTeXt module for R
Taco Hoekwater
taco at elvenkind.com
Wed Jun 7 10:07:33 CEST 2006
I do not have R installed here. but:
Johan Sandblom wrote:
>
> % I would like to reduce this two-stage call, but then line-endings disappear
This two-stage approach is required unless each statement in R is
terminated uniquely, by something like a semicolon because then
you could redefine the semicolon at the writing stage.
> \def\startR%
> {\bgroup
> \obeylines
> \catcode`\%=\@@letter
> \catcode`\#=\@@letter
> \dostartR%
> }%
Don't you need percent signs at the end of the @@letter lines?
> \stopmode
> \typeRout%
> \egroup}%
You can make that
\stopmode
\egroup
\typeRout }
because \typefile doesnt need \obeylines
Cheers, Taco
More information about the ntg-context
mailing list