Add chunk of code without executing it

给你一囗甜甜゛ 提交于 2019-12-19 15:40:31

问题


In knitr, is there any option that allows code to be inserted without being executed? I only want the code to appear in the document with the same style than other knitr code chunks.

I am particularly interested in the options for LaTeX in a .Rnw document.


回答1:


Like @Ramnath commented, this can be achieved using the eval = FALSE chunk option.



来源:https://stackoverflow.com/questions/21950622/add-chunk-of-code-without-executing-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!