2 R version 2.5.0 (2007-04-23)
3 Copyright (C) 2007 The R Foundation for Statistical Computing
6 R is free software and comes with ABSOLUTELY NO WARRANTY.
7 You are welcome to redistribute it under certain conditions.
8 Type 'license()' or 'licence()' for distribution details.
10 R is a collaborative project with many contributors.
11 Type 'contributors()' for more information and
12 'citation()' on how to cite R or R packages in publications.
14 Type 'demo()' for some demos, 'help()' for on-line help, or
15 'help.start()' for an HTML browser interface to help.
18 > suppressMessages(library(cacheSweave))
20 > infile <- system.file("example", "simpleRR.Rnw", package = "cacheSweave")
22 > setCacheDir("cache")
24 > Sweave(infile, driver = cacheSweaveDriver)
25 Writing to file simpleRR.tex
26 Processing code chunks ...
27 1 : echo term verbatim (label=LoadPackages)
28 2 : echo term verbatim (label=FitLinearModel)
29 3 : echo term tex (label=CoefficientTable)
30 4 : echo term verbatim pdf (label=LinearModelDiagnosticPlots)
32 You can now run LaTeX on 'simpleRR.tex'
35 [1] "airquality" "fit" "infile" "oldpar"
38 > ## Check to see that objects were properly cached
39 > ## Database should contain 'airquality' and 'fit'
41 > dname <- dir("cache", full.names = TRUE)
42 > suppressMessages(library(stashR))
43 > db <- new("localDB", dir = dname, name = "cacheDB")
45 [1] ".__856743e03e5d0d595e4ee5c9ab86052e__"
47 [3] ".__1a92865db91cad5463c99e83d570c353__"