Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add chunk of code without executing it

Tags:

r

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.

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

like image 477
papirrin Avatar asked Feb 22 '14 06:02

papirrin


1 Answers

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

like image 164
Paul Hiemstra Avatar answered Nov 16 '22 04:11

Paul Hiemstra