I am uploading a file image (RData) to git-hub.
When the file image is generated thus:
save.image("myfile.RData",compress = FALSE, version = 3)
I have no issue loading it back into R.
However, if I put the same file image into git-hub and try to download and load it I get an error message
githubURL <- "https://github.com/mygit/folde/myfile.RData"
download.file(githubURL, destfile = "myfile.RData", method="curl")
read("myfile.RData")
Error in load("myfile.RData") :
bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘ myfile.RData’ has magic number 'Not F'
Use of save versions prior to 2 is deprecated