Object serialization in R

Saving and restoring objects in R is simple and sometimes it might be very helpful. Especially if you want to keep results from a very time-consuming analysis which obviously you don't want to repeat.

# Serialize
saveRDS(results, 'results.obj')
# Deserialize object
restored_results <- readRDS('results.obj')