safe_save_rds | R Documentation |
Safe version of saveRDS()
.
If the given save path (i.e. dirname(file_path)
) does not exist, it is created instead of raising an error.
safe_save_rds(object, file_path, recursive = TRUE, no_warning = FALSE)
object |
R variable or object to save on disk. |
file_path |
Path and name of the save file, as a string. |
recursive |
Should elements of the path other than the last be created?
If |
no_warning |
Whether to cancel the warning issued if a directory is created (bool). |
No return value.
safe_save_rds(c(1, 2, 8), "./some_folder/my_new_folder/my_vector.rds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.