简体   繁体   English

在Web应用程序的服务器上部署.R脚本

[英]Deploy .R scripts on server for web application

I want to build a web application that utilizes .R scripts and outputs the results to the user. 我想构建一个利用.R脚本并将结果输出给用户的Web应用程序。 I know this can be implemented in a number of different ways, but is there a recommended approach to take? 我知道这可以通过多种不同的方式来实现,但是有没有推荐的方法? ie is there a best practice approach to take? 即是否有最佳实践方法?

I am unsure whether to host the R code on the web server or use a separate application server for executing the .R scripts. 我不确定是将R代码托管在Web服务器上,还是使用单独的应用程序服务器执行.R脚本。

If you want your server to serve html pages usable by humans, Shiny is a very interesting way to go, as mentioned by @Aleh. 如果您希望服务器提供人类可用的html页面,则@Aleh提到, Shiny是一种非常有趣的方法。

If you rather want a web API (REST) which can be used by computers, have a look at Plumber 如果您希望可以由计算机使用的Web API(REST),请查看Plumber

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM