r-script
r-script copied to clipboard
Silently failing
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.
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.