I've seen lots of articles about consuming data in R from other RESTful API services, but I have really struggled to find any articles about the reverse. I'm interested in R being the server, and not the client. I'd like a Node.js app to call a RESTful API of an R-server so I can leverage specific analytical functions such as multi-seasonality forecasting. Anyone have any ideas?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
相关文章
- node连接远程oracle报错
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- How can make folder with Firebase Cloud Functions
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
node-rio provides a way to talk to rserve (a TCP/IP server that allows the use of R functions) from node.js.
Here is an example of use (from the documentation):
You can use
httpuv
to fire up a basic server then handle theGET
/POST
requests. The following isn't "REST" per se, but it should provide the basic framework:I have the
httr
andRCurl
packages in there since you'll probably end up needing to use some bits of both to parse/format/etc requests & responses.