Displaying 1 result from an estimated 1 matches for "fsverb".
Did you mean:
fstverb
2013 Jan 10
1
help with knit_hooks
Dear R-listers,
does anybody can suggest some manual where I can learn more about how the
hooks in knitr work?
I am trying to enclose the output of an R command in the Latex verbatim
environment.
I defined a hook as follows:
knit_hooks$set(fsverb = function(x, options) {
paste("\\begin(verbatim)\n", x, "\\end(verbatim)\n", sep = "")
}
then I set a chunk as follows:
<<expl-emp, echo = TRUE, results = 'asis', fsverb = TRUE>>=
names(data)
@
but when I compile, I get a message of error sayi...