EVOLUTION-MANAGER
Edit File: user_cache_dir.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: Path to user cache directory</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 user_cache_dir {rappdirs}"><tr><td>user_cache_dir {rappdirs}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Path to user cache directory</h2> <h3>Description</h3> <p>This functions uses <code>R_USER_CACHE_DIR</code> if set. Otherwise, they follow platform conventions. Typical user cache directories are: </p> <ul> <li><p> Mac OS X: <code style="white-space: pre;">~/Library/Caches/<AppName></code> </p> </li> <li><p> Linux: <code style="white-space: pre;">~/.cache/<AppName></code> </p> </li> <li><p> Win XP: <code style="white-space: pre;">C:\\Documents and Settings\\<username>\\Local Settings\\Application Data\\<AppAuthor>\\<AppName>\\Cache</code> </p> </li> <li><p> Vista: <code style="white-space: pre;">C:\\Users\\<username>\\AppData\\Local\\<AppAuthor>\\<AppName>\\Cache</code> </p> </li></ul> <h3>Usage</h3> <pre> user_cache_dir( appname = NULL, appauthor = appname, version = NULL, opinion = TRUE, expand = TRUE, os = NULL ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>appname</code></td> <td> <p>is the name of application. If NULL, just the system directory is returned.</p> </td></tr> <tr valign="top"><td><code>appauthor</code></td> <td> <p>(only required and used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. This falls back to appname.</p> </td></tr> <tr valign="top"><td><code>version</code></td> <td> <p>is an optional version path element to append to the path. You might want to use this if you want multiple versions of your app to be able to run independently. If used, this would typically be <code>"<major>.<minor>"</code>. Only applied when appname is not NULL.</p> </td></tr> <tr valign="top"><td><code>opinion</code></td> <td> <p>(logical) Use <code>FALSE</code> to disable the appending of <code>Cache</code> on Windows. See discussion below.</p> </td></tr> <tr valign="top"><td><code>expand</code></td> <td> <p>If TRUE (the default) will expand the <code>R_LIBS</code> specifiers with their equivalents. See <code><a href="../../base/html/libPaths.html">R_LIBS()</a></code> for list of all possibly specifiers.</p> </td></tr> <tr valign="top"><td><code>os</code></td> <td> <p>Operating system whose conventions are used to construct the requested directory. Possible values are "win", "mac", "unix". If <code>NULL</code> (the default) then the current OS will be used.</p> </td></tr> </table> <h3>Opinion</h3> <p>On Windows the only suggestion in the MSDN docs is that local settings go in the <code>CSIDL_LOCAL_APPDATA</code> directory. This is identical to the non-roaming app data dir (i.e. <code><a href="user_data_dir.html">user_data_dir()</a></code>). But apps typically put cache data somewhere <em>under</em> this directory so <code>user_cache_dir()</code> appends <code>Cache</code> to the <code>CSIDL_LOCAL_APPDATA</code> value, unless <code>opinion = FALSE</code>. </p> <h3>See Also</h3> <p><code><a href="../../base/html/tempfile.html">tempdir()</a></code> for a non-persistent temporary directory. </p> <h3>Examples</h3> <pre> user_cache_dir("rappdirs") </pre> <hr /><div style="text-align: center;">[Package <em>rappdirs</em> version 0.3.3 <a href="00Index.html">Index</a>]</div> </body></html>