r save environment code example
Example: save rds object r
#file name requires extension .rds
saveRDS(object, file = "", ascii = FALSE, version = NULL,
compress = TRUE, refhook = NULL)
#For reading use
readRDS(file, refhook = NULL)