0

I looked at the http://shiny.rstudio.com, it looks to me that the shiny server is heavily bounded with shiny UI things. That is, the requests to shiny server could only be invoked via shiny ui widgets.

I would ask whether shiny server supports REST, so that I can use some rest client instead of shiny ui widget to directly call the api that shiny server provides, this would be very helpful for integration between different languages, like java calls R.

shosaco
  • 5,915
  • 1
  • 30
  • 48
Tom
  • 5,848
  • 12
  • 44
  • 104
  • Related: https://stackoverflow.com/questions/25297489/accept-http-request-in-r-shiny-application – neilfws Jun 22 '17 at 01:05
  • 2
    Currently no, but it is a feature being developed by the shiny team – DeanAttali Jun 22 '17 at 01:11
  • Thanks @neilfws, I looked at the discussions there that the code is complex and not straightforward from REST's view. From REST's view, give me a resource url together with some request data, and the rest api will give you the result, nothing to do UI. – Tom Jun 22 '17 at 01:24
  • Thanks @Dean for the information. – Tom Jun 22 '17 at 01:25
  • If you want a REST API, you could try out Microsoft R's [R Server Operationalization](https://msdn.microsoft.com/en-us/microsoft-r/operationalize/about). – Hong Ooi Jun 22 '17 at 01:36
  • Thanks @HongOoi for the information. I would guess that the R Server you mentioned is commercial? – Tom Jun 22 '17 at 03:34
  • Yes, although if you have an MSDN account you can download a developer licensed edition for free. – Hong Ooi Jun 22 '17 at 03:39
  • Thanks @HongOoi for the information , i will try thanks – Tom Jun 22 '17 at 06:36
  • For future readers: Please check my related answer [here](https://stackoverflow.com/questions/25283736/r-shiny-rest-api-communication/71064046#71064046) which is showing how to handle POST requests directly in `shiny`. – ismirsehregal Feb 10 '22 at 22:35

0 Answers0