<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,6 +14,7 @@ export(
        &quot;sourcefile&quot;,
        &quot;showfiles&quot;,
        &quot;cache&quot;,
+       &quot;setcache&quot;,
        &quot;showobjects&quot;,
        &quot;package&quot;,
        &quot;clonecache&quot;,</diff>
      <filename>NAMESPACE</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,11 @@ cache &lt;- function() {
         getConfig(&quot;cachedir&quot;)
 }
 
+setcache &lt;- function(dir) {
+        setConfig(&quot;cachedir&quot;, dir)
+        invisible(dir)
+}
+
 deletecache &lt;- function(cachedir = NULL) {
         if(is.null(cachedir))
                 cachedir &lt;- cache()</diff>
      <filename>R/vizcache.R</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,23 @@
 \name{cache}
 \alias{cache}
-%- Also NEED an '\alias' for EACH other topic documented here.
-\title{Return cache directory}
+\alias{setcache}
+
+\title{Set/Return cache directory}
 \description{
-  Return the path to the current cache directory
+  Set/Return the path to the current cache directory
 }
 \usage{
 cache()
+setcache(dir)
+}
+\arguments{
+  \item{dir}{directory name}
 }
 \value{
   A string indicating the path to the current cache directory.
 }
 \examples{
-setConfig(&quot;cachedir&quot;, &quot;mycachedir&quot;)
+setcache(&quot;mycachedir&quot;)
 cache()
 }
 \keyword{utilities}</diff>
      <filename>man/cache.Rd</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>930bfc149c1182dfdf3adddce906696b70b0fa69</id>
    </parent>
  </parents>
  <author>
    <name>Roger D. Peng [amelia]</name>
    <email>rdpeng@gmail.com</email>
  </author>
  <url>http://github.com/rdpeng/cacher/commit/d8e520383b8dd5a211db25fb6bd7585e02a8be80</url>
  <id>d8e520383b8dd5a211db25fb6bd7585e02a8be80</id>
  <committed-date>2009-06-03T10:05:44-07:00</committed-date>
  <authored-date>2009-06-03T10:05:44-07:00</authored-date>
  <message>Add 'setcache' function</message>
  <tree>70b69bc7b4ce2b4489fa1859fbb04479667b7fc3</tree>
  <committer>
    <name>Roger D. Peng [amelia]</name>
    <email>rdpeng@gmail.com</email>
  </committer>
</commit>
