Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silently failing #10

Open
natejgardner opened this issue Jul 17, 2017 · 1 comment
Open

Silently failing #10

natejgardner opened this issue Jul 17, 2017 · 1 comment

Comments

@natejgardner
Copy link

natejgardner commented Jul 17, 2017

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant