Generator function for gorpipe. Given a full path to the gorpipe executable, return a function that wraps gorpipe calls, returning a data.frame of the output data

get_gorpipe(path)

Arguments

path

full path to gorpipe, e.g. ~/gor-scripts/bin/gorpipe

Value

function(code) -> data.frame

Examples

if (FALSE) {
gorpipe <- get_gorpipe("~/gor-scripts/bin/gorpipe")
gorpipe("norrows 21 | calc even mod(rownum, 2) | calc even_txt if(even==1,'yes','no')")
}