R built in Web server

前端 未结 3 1479
广开言路
广开言路 2021-02-14 18:37

Since R 2.13, R comes with a built-in web server. Is there a simple way to create a local web server using R with a custom port number?

In python it will be (to use \"

3条回答
  •  忘了有多久
    2021-02-14 19:17

    Take a look at Rook - it's on GitHub. About setting a port number, see ?tools::help.ports it accepts a vector of numbers (integers) and it will choose the first available one. There's also sinartra (CRAN, GitHub), but I'd rather go with Rook.

提交回复
热议问题