James Curran James Curran - 5 months ago 37
R Question

Rda files causing Windows build errors

My package can be found on GitHub.

I am having trouble with the Windows build. Specifically I get this error:

Error in load(zfile, envir = envir) :
input has been corrupted, with LF replaced by CR
ERROR: installing package indices failed
* removing 'C:/Users/James/Documents/R/win-library/3.4/relSim'

From an ancient Brian Ripley post I have discovered that my .rda files are the likely source of the error, and in Windows, as I cannot load them.

However, I am unsure what I am supposed to do to fix this problem. The package compiles just fine on Linux and OS X.

Answer Source

Loading the files into memory and then re-saving them seems to have fixed this error. It would be nice to know what caused it in the first place.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download