Template Rcode
GuiName "R code: $$FName"
HelpText
Insert R code inside a R-Chunk (Sweave document).
HelpTextEnd
InputFormat R
FileFilter "*.{R,r}"
AutomaticProduction false
Preview Off
Transform Extra
[...]
Format Ascii
TransformOption Extra ExtraOption
Option Pre "<<$$Extra>>="
Product "$$Pre
$$Contents(\"$$AbsPath$$Basename$$Extension\")
@"
FormatEnd
TemplateEndUsing this, I got only the string equivalent to $$Pre printed in my document. If I put everything on one line, that is:
Product "$$Pre$$Contents(\"$$AbsPath$$Basename$$Extension\")@"it works fine (except the '@' that is not printed)... except I need to include line feed between the three elements for correct noweb formatting of my output! May be is it an alternate way to include line feed or @ in the product (I have testes \n and \@ without success)?
Best, PhG -- ..............................................<°}))><........ ) ) ) ) ) ( ( ( ( ( Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( ( Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( ..............................................................
