That is, is there an embedded R interpreter available?
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.
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