View source: R/LoadingSaving.R
saveAndromeda | R Documentation |
Saves the Andromeda
object in a zipped file. Note that by default the Andromeda
object is
automatically closed by saving it to disk. This is due to a limitation of the underlying technology
('RSQLite'). To keep the connection open, use maintainConnection = TRUE
. This will first
create a temporary copy of the Andromeda
object. Note that this can be substantially slower.
saveAndromeda(
andromeda,
fileName,
maintainConnection = FALSE,
overwrite = TRUE
)
andromeda |
An object of class |
fileName |
The path where the object will be written. |
maintainConnection |
Should the connection be maintained after saving? If |
overwrite |
If the file exists, should it be overwritten? If |
Returns no value. Executed for the side-effect of saving the object to disk.
loadAndromeda
loadAndromeda()
andr <- andromeda(cars = cars)
# For this example we'll use a temporary file location:
fileName <- tempfile()
saveAndromeda(andr, fileName)
# Cleaning up the file used in this example:
unlink(fileName)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.