[r] The cause of "bad magic number" error when loading a workspace and how to avoid it?

Install the readr package, then use library(readr).