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

both examples (sync and async) doesn't run #42

Open
foulong opened this issue Jan 13, 2021 · 2 comments
Open

both examples (sync and async) doesn't run #42

foulong opened this issue Jan 13, 2021 · 2 comments

Comments

@foulong
Copy link

foulong commented Jan 13, 2021

Hello,

ex-sync.R : the console.log command returns "null".
It isn't the expected result (cf. README.md)

ex-async.R : in console, returns :

events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: spawn Rscript ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

It isn't the expected result (cf. README.md)

What solution do i have ?
Is the project still maintained ?

Thanks in advance.

@esvanegas
Copy link

I had the same issue using windows. After digging and understand the code, I notice that the error shows that Rscript is not recognize as a command. So check if your path is set up to use R.

Add R binaries to my path solve the issue to me.

@ttran293
Copy link

@esvanegas could you explain further what the R binaries folder path is?
I added both
C:\Program Files\R\R-4.3.1\bin\x64
C:\Program Files\R\R-4.3.1\bin

to my Path. I'm able to run R in the command prompt.
Still when I test Synchronous example code. I got NULL.

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

3 participants