Friday, May 17, 2024
Homepage · r
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  41] [ 7]  / answers: 1 / hits: 49479  / 11 Years ago, mon, july 15, 2013, 12:00:00

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 research has not found any good way to do it yet. Is there any way to do so?



Also, I have next to no experience with R (another person is supplying the R code).


More From » r

 Answers
6

If you're ok with having the R code run on a server, then you should take a look at OpenCPU. It provides a REST API and corresponding JavaScript library for sending R code to the server and getting the results back. In particular, it takes care of the security problems that can arise from running R as a server (R code can run arbitrary shell commands, among other things). There are public demo instances that you can use to try it out, and this page provides a simple tutorial.


[#76979] Sunday, July 14, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kearaw

Total Points: 713
Total Questions: 94
Total Answers: 109

Location: Western Sahara
Member since Sun, Nov 22, 2020
4 Years ago
;