# NOT RUN {
# different styles/formats
pandoc.verbatim('FOO')
src <- c('FOO', 'indent', 'BAR' )
pandoc.verbatim(src)
pandoc.verbatim.return(src)
pandoc.verbatim(c('FOOO\nBAR ', ' I do R'), 'indent')
pandoc.verbatim(c('FOOO\nBAR ', ' I do R'), 'delim')
# add highlighting and HTML/LaTeX ID and classes (even custom attribute)
pandoc.verbatim(c('cat("FOO")', 'mean(bar)'), 'delim', '.R #MyCode custom_var="10"')
# }
Run the code above in your browser using DataLab