I tried to load my R workspace and received this error:
Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning m
I got that error when I accidentally used load() instead of source() or readRDS().
load()
source()
readRDS()