Closed thothal closed 8 months ago
Duplicate of
Possible solutions (workarounds): https://github.com/rstudio/rmarkdown/issues/974#issuecomment-934080652 and https://github.com/yihui/knitr/issues/1567#issuecomment-401950933
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
Just for the record, commented-out R code is ignored in litedown: https://github.com/yihui/litedown
Consider this minimal example:
This will throw an error:
Is this behaviour by design? My intuition was that code which is commented is not evaluated. Is it at least worth to mention this explicitly (if it is already excuse my ignorance ;))
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.