添加代码块而不执行它 [英] Add chunk of code without executing it
本文介绍了添加代码块而不执行它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在编织器中,是否有任何选项允许在不执行代码的情况下插入代码?我只希望代码以与其他 knitr 代码块相同的样式显示在文档中.
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.
我对.Rnw文档中的LaTeX选项特别感兴趣.
I am particularly interested in the options for LaTeX in a .Rnw document.
推荐答案
就像@Ramnath注释的那样,可以使用eval = FALSE
块选项来实现.
Like @Ramnath commented, this can be achieved using the eval = FALSE
chunk option.
这篇关于添加代码块而不执行它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文