The recommendation for comments in .Rmddocuments for using HTML comments is <!-- comment here -->not enough. I would like to comment on a section of my document that includes inline ratings:
I haven't defined `x` yet.
Knitting this fails:
# |.................................................................| 100%
# inline R code fragments
#
#
#
#
# processing file: test.Rmd
# Quitting from lines 2-3 (test.Rmd)
# Error in eval(expr, envir, enclos) : object 'x' not found
# Calls: <Anonymous> ... in_dir -> inline_exec -> withVisible -> eval -> eval
# Execution halted
One option is to comment on each built-in section:
I haven't defined `x` yet.
So when I say that `x` is `r
But this suffers if I would like to comment on a whole paragraph with several such inline calculations, for example. Is there a more canonical way to do this?
source
share