When using spin
in package knitr
, how does one simply comment things out to make them invisible to spin? roxygen
style lines (#'
) are taken as lines to appear in the report. The usual R comment #
is taken as an R
comment and appears in a code block. Lines that are just text, with no special character at the beginning, cause an error. Lines beginning withe the LaTeX
comment %
cause an error. However, plain lines that follow the start of a chunk are taken to be part of the chunk and appear in the code block (#+
or #-
). So is there a character/symbol that functions to mark a comment line in the true sense of the word?
EDIT: If it has to be invented, the LaTeX
comment character %
would be quite handy. Just saying.