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
Assuming your file is named "myfile.ext"
If the file you're trying to load is not an R-script, for which you would use
source("myfile.ext")
you might try the readRDSfunction and assign it to a variable-name:
readRDS
my.data <- readRDS("myfile.ext")