Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:在Node.js中执行r-script时生成Rscript enoint_R_Node.js - Fatal编程技术网

错误:在Node.js中执行r-script时生成Rscript enoint

错误:在Node.js中执行r-script时生成Rscript enoint,r,node.js,R,Node.js,我尝试使用Node.js运行一个小的R脚本(中的示例),但在执行Node index.js时,我总是会遇到下一个错误: 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 (intern

我尝试使用Node.js运行一个小的R脚本(中的示例),但在执行
Node index.js
时,我总是会遇到下一个错误:

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)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
怎么能修好呢?我也试过使用js-call-r,但我遇到了同样的问题。
谢谢。

我也面临同样的问题。你能解决这个问题吗?不,我不能。我必须使用plumber软件包才能运行R scripts.Tysm。。你可以分享你的参考网站url:-)这会很有帮助是的,你有:它创建了一个API,你可以通过请求从NodeJ访问。我也面临着同样的问题。你能解决这个问题吗?不,我不能。我必须使用plumber软件包才能运行R scripts.Tysm。。你能分享你的参考网站url:-)这会很有帮助是的,你有:它创建了一个API,你可以通过请求从NodeJ访问。