问题
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