Skip to content

Instantly share code, notes, and snippets.

View hturner's full-sized avatar

Heather Turner hturner

View GitHub Profile
@jennybc
jennybc / Differ.R
Last active June 10, 2020 21:13 — forked from muschellij2/Differ.R
Get the Diff of 2 file solely with R functions
#rm(list=ls())
library(git2r)
library(plyr)
library(daff)
differ = function(file1, file2){
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)