My compute cluster recently updated to R version R 3.6.0 and deleted the old versions of R. I had been running my project in R 3.4.0. I decided this would be fine, ran some code, and saved the output during my R 3.6.0 session as:
saveRDS(output, output.path)
This file was then transferred to a different computer where interactive R use takes place. This computer runs R/3.4.0, and updating the version of R is not an option. When I go to open the above file, I get the following error:
readRDS(output.path)
Error in readRDS(output.path) : cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
This is a bummer. I am not the system administrator on either of these computers, so I can't just synchronize the versions. This is my question:
Is there a way to write a file using saveRDS() in R 3.6.0 such that it would be backward compatible in an R 3.4.0 environment?