RDS

  • write_rds() and read_rds() are uniform wrappers around the base functions readRDS() and saveRDS().

  • These store data in R’s custom binary format called RDS, which means that when you reload the object, you are loading the exact same R object that you stored.

write_rds(students, "students.rds")
read_rds("students.rds")