问题
That is, is there an embedded R interpreter available?
回答1:
You could use Jeff Horner's excellent rapache.
Other options that are CGI-alike are mentioned in the section 4 of the R FAQ which discusses Web interfaces.
回答2:
You can used Shiny app into R http://shiny.rstudio.com/tutorial/
来源:https://stackoverflow.com/questions/1395174/how-to-call-r-from-within-a-web-server-like-apache