powered by
Is a line in knitr R or not?
isR_line_in_knitr(lines)
Lines to check, as in the result of readLines. Not a filename.
readLines
TRUE if in knitr chunk (including boundaries). FALSE otherwise.
TRUE
FALSE