You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to reopen the issue regarding knitr and comments. I don't quite understand either the technical or semantic/syntactic arguments against obeying latex comments: "%". I successfully modified knitr to obey source comments so that inside knitr commands, they're ignored, but outside knitr commands they're respected. I'd be happy to provide a patch for anyone to look over. I only wrote the regexp for latex comments, but it'd be easy (as long as you can describe comments with a regex) to extend it to any other source type.
I would see the reasoning against it except that \Sexpr{} and \SweaveOpts{} appear as if they were latex commands and it seems to me as if the expected thing is for them to obey comments.
The text was updated successfully, but these errors were encountered:
this feature is not there mainly because of implementation difficulties (as mentioned in #110), so if you have already succeeded in letting knitr obey LaTeX comments, I will be glad to accept the patch
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.
I would like to reopen the issue regarding knitr and comments. I don't quite understand either the technical or semantic/syntactic arguments against obeying latex comments: "%". I successfully modified knitr to obey source comments so that inside knitr commands, they're ignored, but outside knitr commands they're respected. I'd be happy to provide a patch for anyone to look over. I only wrote the regexp for latex comments, but it'd be easy (as long as you can describe comments with a regex) to extend it to any other source type.
I would see the reasoning against it except that \Sexpr{} and \SweaveOpts{} appear as if they were latex commands and it seems to me as if the expected thing is for them to obey comments.
The text was updated successfully, but these errors were encountered: