search for: morecod

Displaying 1 result from an estimated 1 matches for "morecod".

Did you mean: morecode
2010 Dec 11
5
(S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?
...(see Knuth's books rendering TeX and metafont sources to see what I mean). I seemed to remember that a code chunk could be defined piecewise, like in Comments... <<Chunk1, eval=FALSE, echo=TRUE>>= SomeCode @ Some other comments... <<Chunk2, eval=FALSE, echo=TRUE>>= MoreCode @ And finally, <<Chunk3, eval=TRUE, echo=TRUE>>= <<Chunk1>> <<Chunk2>> EndOfTheCode @ That works ... as long as SomeCode, MoreCode and EndOfTheCode are self- standing pieces of R code, but *not* code fragments. You can *not* intersperse comments in, say, a f...