r-script icon indicating copy to clipboard operation
r-script copied to clipboard

Silently failing

Open natejgardner opened this issue 8 years ago • 1 comments

Do you have any recommendations for debugging?

const R = require("r-script");

let results = R("../R/test.R")
                       .data('')
                       .callSync();

console.log(results);

returns null for any R script, including the most basic:

test.r

1+1

I verified with cat to file on the first line of my R code that R is never running, but there is no output even in the verbose debugger.

natejgardner avatar Jul 17 '17 21:07 natejgardner

Solved my own issue. R wasn't in the PATH, thus causing r-script to fail. However, it'd be very helpful if r-script wasn't silent about this.

natejgardner avatar Jul 17 '17 22:07 natejgardner