EVOLUTION-MANAGER
Edit File: read_rds.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: Read/write RDS files.</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 read_rds {readr}"><tr><td>read_rds {readr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Read/write RDS files.</h2> <h3>Description</h3> <p>Consistent wrapper around <code><a href="../../base/html/readRDS.html">saveRDS()</a></code> and <code><a href="../../base/html/readRDS.html">readRDS()</a></code>. <code>write_rds()</code> does not compress by default as space is generally cheaper than time. </p> <h3>Usage</h3> <pre> read_rds(path) write_rds(x, path, compress = c("none", "gz", "bz2", "xz"), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>path</code></td> <td> <p>Path to read from/write to.</p> </td></tr> <tr valign="top"><td><code>x</code></td> <td> <p>R object to write to serialise.</p> </td></tr> <tr valign="top"><td><code>compress</code></td> <td> <p>Compression method to use: "none", "gz" ,"bz", or "xz".</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional arguments to connection function. For example, control the space-time trade-off of different compression methods with <code>compression</code>. See <code><a href="../../base/html/connections.html">connections()</a></code> for more details.</p> </td></tr> </table> <h3>Value</h3> <p><code>write_rds()</code> returns <code>x</code>, invisibly. </p> <h3>Examples</h3> <pre> temp <- tempfile() write_rds(mtcars, temp) read_rds(temp) ## Not run: write_rds(mtcars, "compressed_mtc.rds", "xz", compression = 9L) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>readr</em> version 1.3.1 <a href="00Index.html">Index</a>]</div> </body></html>