EVOLUTION-MANAGER
Edit File: cache_gcs.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: Google Cloud Storage Cache Google Cloud Storage backed cache,...</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 cache_gcs {memoise}"><tr><td>cache_gcs {memoise}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Google Cloud Storage Cache Google Cloud Storage backed cache, for remote caching.</h2> <h3>Description</h3> <p>Google Cloud Storage Cache Google Cloud Storage backed cache, for remote caching. </p> <h3>Usage</h3> <pre> cache_gcs( cache_name = googleCloudStorageR::gcs_get_global_bucket(), algo = "sha512", compress = FALSE ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>cache_name</code></td> <td> <p>Bucket name for storing cache files.</p> </td></tr> <tr valign="top"><td><code>algo</code></td> <td> <p>The hashing algorithm used for the cache, see <code><a href="../../digest/html/digest.html">digest</a></code> for available algorithms.</p> </td></tr> <tr valign="top"><td><code>compress</code></td> <td> <p>Argument passed to <code>saveRDS</code>. One of FALSE, "gzip", "bzip2" or "xz". Default: FALSE.</p> </td></tr> </table> <h3>Examples</h3> <pre> ## Not run: library(googleCloudStorageR) # Set GCS credentials. Sys.setenv("GCS_AUTH_FILE"="<google-service-json>", "GCS_DEFAULT_BUCKET"="unique-bucket-name") gcs <- cache_gcs("unique-bucket-name") mem_runif <- memoise(runif, cache = gcs) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>memoise</em> version 2.0.1 <a href="00Index.html">Index</a>]</div> </body></html>