Out of my depth with this one:
I have a small package passing check and building fine on my local machine an up-to-date github repository for this same project. Trying to devtools::install_github('repo/project') consistently fails, however, with the following warning and error:
Warning: file 'genesets.rda' has magic number 'versi'
Use of save versions prior to 2 is deprecated
Error : bad restore file magic number (file may be corrupted) -- no data loaded
ERROR: lazydata failed for package 'sear'
The .rda in question is required data for some functions included in the package. It's in a standalone .rda in the /data folder rather than in sysdata.rda because the data.frame itself could be useful to users as a standalone (Moving forward it might make sense to break apart data and current package functionality, but for now this is the way I have it.)
The .rda was created using :
devtools::use_data(genesets, compress = 'bzip2')
I've tried re-creating it with different compression (to change the hash and force a change for git to pickup and also doing:
save(genesets, file = 'data/genesets.rda', compress = 'bzip2')
Still getting the same error though. I should add that the rda object in question used to cause no problem... unfortunately I wasn't checking whether devtools::install_github() worked with every commit, so identifying the change that did it could take a bit of work.... Any ideas?
Thanks in advance!