[R] How to start console output with a comment sign (as in knitr)
Marcus Kriele
mkriele at me.com
Sat Mar 2 14:35:41 CET 2013
Dear all,
knitr writes a comment sign in front of each line of console output. This extremely useful, especially for beginners who are starting to write scripts. One could just compose their script in the console (getting immediate output) and then copy the whole chunk into their .r-file.
I have been able to configure the options such that the prompt and the continuing line labels are replaced by blanks. However, I do not know how to automatically comment out each line of output. Ideally, my console would behave exactly like knitr.
At my work place I only have access to the R console that is included the standard download for windows. I cannot replace it by an editor that may have additional features.
Would there be a way to achieve the knitr-look in the standard console?
Many thanks, Marcus
More information about the R-help
mailing list