[R] diff-ing .rds files

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Mon Nov 23 19:33:51 CET 2015

You are sending contradictory signals... do you or do you not want plain text files?  You have not indicated what advantage you are getting from having binary files in your repository. By far the best answer I see to your dilemma is to save in ASCII format instead of the default binary format. 

On November 23, 2015 9:36:21 AM PST, Will Hopper <wjhopper510 at gmail.com> wrote:
>Hi all,
>I'm posting to see if anyone knows of any existing resources that
>auto-magically converts r objects in saved in .rds files to a plain
>representation, suitable for diffing?
>I often save the results of long running calculation as .rds files, and
>since I use git for source control, it would be nice if there were a
>way to
>convert rds files to a plain text representation for diffing, so I
>avoid having large commits full of binary data. Git allows you specify
>programs for binary --> text conversion for any file type, effectively
>teaching git how to diff binary files. If there was something out there
>developed to do this with .rds files, it would really like to know
>about it!
>I realize I could save the rds file with ascii=TRUE and compress=FALSE,
>that kind of defeats the point of saving as .rds in the first place.
>If there is no tool out that there anyone knows of, I don't think it
>be too hard for me to write something with bash + Rscript to get the
>done, but I'd like to avoid re-inventing the wheel if possible.
>Thanks for the help!
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

Sent from my Android device with K-9 Mail. Please excuse my brevity.
	[[alternative HTML version deleted]]

More information about the R-help mailing list