EVOLUTION-MANAGER
Edit File: printHTML.trackinfo.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: Write HTML pages of the tracking result.</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 printHTML.trackInfo {RUnit}"><tr><td>printHTML.trackInfo {RUnit}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Write HTML pages of the tracking result.</h2> <h3>Description</h3> <p><code>printHTML.trackInfo</code> creates a subdirectory named "result" in the base directory specified via <code>baseDir</code>. All HTML pages and images will be put in that directory. </p> <h3>Usage</h3> <pre> printHTML.trackInfo(object, baseDir = ".") </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>'trackInfo' S3 class object (list), containing the result of the function <code>tracker</code>.</p> </td></tr> <tr valign="top"><td><code>baseDir</code></td> <td> <p>A character string, specifying the base directory for the HTML pages to be written to. Defaults to the current working directory.</p> </td></tr> </table> <h3>Details</h3> <p>An "index.html" page will be created in the directory "results" which is the root entry page of the HTML pages. The displayed result for every tracked function consists of two HTML pages. The first page is an overview on how often every line of code was executed. Code lines not executed are highlighted red, executed lines are shown in green. The second page is a graph representation of the execution flow of the function. Each code line has a edge pointing to the next code line that is executed subsequently. Thus loops and jumps become clearly visible. </p> <h3>Author(s)</h3> <p>Thomas König, Klaus Jünemann & Matthias Burger</p> <h3>See Also</h3> <p><code><a href="tracker.html">tracker</a></code> for the call tracking object definition. </p> <h3>Examples</h3> <pre> ## example function foo <- function(x){ y <- 0 for(i in 1:100) { y <- y + i } return(y) } ## the name track is necessary track <- tracker() ## initialize the tracker track$init() ## inspect the function ## res is the result of foo res <- inspect(foo(10), track = track) ## get the tracking info resTrack <- track$getTrackInfo() ## create HTML pages printHTML.trackInfo(resTrack) </pre> <hr /><div style="text-align: center;">[Package <em>RUnit</em> version 0.4.32 <a href="00Index.html">Index</a>]</div> </body></html>