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
Post a Comment