saveSpataObject | R Documentation |
Saves the SPATA2
object under a default directory.
saveSpataObject(object, dir = NULL, verbose = NULL, ...)
object |
An object of class |
dir |
Character value. The directory under which to store
the |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
Apart from their side effect (saving the object of interest) all three functions
return the provided, updated SPATA2
object.
setSpataDir()
, getSpataDir()
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
getSpataDir(object) # fails, no directory set
# opt 1
object <- setSpataDir(object, directory_spata = "my_folder/object_UKF269T.RDS")
saveSpataObject(object)
# opt 2
object <- saveSpataObject(object, directory_spata = "my_folder/object_UKF269T.RDS")
getSpataDir(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.