EVOLUTION-MANAGER
Edit File: highlight-package.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Syntax Highlighter for R</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for highlight-package {highlight}"><tr><td>highlight-package {highlight}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Syntax Highlighter for R</h2> <h3>Description</h3> <p>Syntax highlighter for R based on output from the R parser </p> <h3>See Also</h3> <p>The main function of the package is <code><a href="highlight.html">highlight</a></code>. </p> <p><code><a href="highlight.html">highlight</a></code> delegates rendering the document to <code><a href="renderer.html">renderer</a></code>s, such as the <code><a href="renderer_latex.html">renderer_latex</a></code> or <code><a href="renderer_html.html">renderer_html</a></code> and is helped by a detective to make sense of the results from the parser. The package ships a <code><a href="simple_detective.html">simple_detective</a></code>. </p> <p>The package also defines a custom sweave driver (<code><a href="HighlightWeaveLatex.html">HighlightWeaveLatex</a></code>) for latex based on the standard sweave latex driver (<code><a href="../../utils/html/RweaveLatex.html">RweaveLatex</a></code>) using <code><a href="highlight.html">highlight</a></code> to perform syntax highlighting of R code chunks. </p> <h3>Examples</h3> <pre> ## Not run: tf <- tempfile() dump( "glm" , file = tf ) # rendering in html highlight( tf, output = stdout(), renderer = renderer_html() ) # rendering in latex highlight( tf, output = stdout(), renderer = renderer_latex() ) # Sweave driver using syntax highlighting if( require( grid ) ){ v <- vignette( "grid", package = "grid" )$file file.copy( v, "grid.Snw" ) Sweave( "grid.Snw", driver= HighlightWeaveLatex() ) system( "pdflatex grid.tex" ) if (.Platform$OS.type == "windows"){ shell.exec( "grid.pdf" ) } else { system(paste(shQuote(getOption("pdfviewer")), "grid.pdf" ), wait = FALSE) } } unlink( tf ) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>highlight</em> version 0.5.0 <a href="00Index.html">Index</a>]</div> </body></html>