Highlight R syntax using knitr and Package Highlight -


i try highlight r code using knit , highlight pachages rstudio, have errors when kniting;

there's code :

opts_chunk$set(fig.width=7, fig.height=5)    opts_knit$set(use.highlight = true)    opts_knit$set(out.format = "html") opts_chunk$set(highlight = true) opts_knit$set(...., highlight=false) render_html() 

and when compiling, have error

error in library(package = "parser", character.only = true) : there no package called 'parser' 

i use r 3.0

thanks in advance

i think have fixed problem in development version, , can install from:

install.packages('knitr', repos = 'http://www.rforge.net/', type = 'source') 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -