3 ms·
Yes, R has the now-RStudio-supported plumber package (https://github.com/trestletech/plumber https://github.com/trestletech/plumber), roughly flask for R. Ther
by claytonjy 8y ago
Yes, R has the now-RStudio-supported plumber package (https://github.com/trestletech/plumber https://github.com/trestletech/plumber), roughly flask for R.
There's also opencpu (https://github.com/opencpu/opencpu https://github.com/opencpu/opencpu), though the pros/cons of one vs the other has never been clear to me.
- closed 8y ago> roughly flask for R Unfortunately, not even close to flask. Plumber doesn't even handle concurrency... https://www.rplumber.io/docs/runtime.html#performance-request-processing https://www.rplumber.io/docs/runtime.html#performance-reques...
- claytonjy 8y agoFWIW this is on their roadmap, using the future-backed promises package which also powerw async in shiny: https://github.com/trestletech/plumber/pull/248 https://github.com/trestletech/plumber/pull/248
- closed 8y agoThat's fair--I'm definitely looking forward to when it's added, since it will make putting up quick prototypes with R very convenient!
- perturbation 8y agoI've used plumber, and it's pretty easy to get started, though doesn't feel very polished. Handling multipart form data took some hackarounds with the underlying "Rook" package. I'm curious to see how https://github.com/thomasp85/fiery https://github.com/thomasp85/fiery performs and if anyone has used that. May be higher performance than plumber (re: concurrency) because I get the sense from the docs that it's closer to libuv.