The cause of “bad magic number” error when loading a workspace and how to avoid it?

I got that error when I accidentally used load() instead of source() or readRDS().

Leave a Comment