Is there a way to run R code from JavaScript?

前端 未结 3 1723
无人共我
无人共我 2021-01-29 22:43

I am working on a project which requires some R code to be run for some data analysis. The project is primarily in JavaScript, and I need a way to run R code from JS. My researc

3条回答
  •  孤街浪徒
    2021-01-29 23:01

    How about R-node ?

    I think another alterative would be to use node.js as a server (http://nodejs.org/) and call R from within as a child process, search the Node.js API docs for specifics.

    Also look at this for confirmation: Is it possible to execute an external program from within node.js?

    Note: node can run any JS script(s) you may have, they don't necessarily need to be node-specific.

提交回复
热议问题