hordes_init()
#13Description
I successfully installed hordes
module from npm
, but having an error at a very fundamental stage.
// in nodeJS
const { library, hordes_init } = require('hordes');
hordes_init();
Also, just to be on the safe side, I also installed Rserve
package from CRAN on R such that:
install.packages("Rserve")
Then closed R and ran the js script from above. I get the following error in console:
node:events:368
throw er; // Unhandled 'error' event
^Error: spawn R ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn R',
path: 'R',
spawnargs: [ 'CMD', 'Rserve', '--vanilla', '--RS-port', 6311 ]
}
Any idea why?