kartoza / sawps

SANBI WPS
https://kartoza.github.io/sawps/
GNU Affero General Public License v3.0
0 stars 6 forks source link

Integration with Plumber API to run R code #666

Closed danangmassandy closed 9 months ago

danangmassandy commented 1 year ago

This is part of #656. Explore and add integration with R Plumber. See https://www.rplumber.io/

danangmassandy commented 1 year ago

Update: the downside of using plumber is that it needs to be reloaded when the R script is changed. I am integrating plumber with new worker container so the worker can spawn the plumber when there is a new request to run R code.

Other alternative: use flask+shell2http to execute R script in a container with R installed.

cc: @dimasciput @timlinux