web/runner.R

library(plumber)
#http://localhost:8000/relative.risk
#https://www.rplumber.io/
#https://www.datacamp.com/community/tutorials/15-easy-solutions-data-frame-problems-r
r <- plumb("api.R")  # Where 'plumber.R' is the location of the file shown above
r$run(host='0.0.0.0', port=8000)

#pr$handle("POST", "/model/cancel/<id>", endpoint_model_cancel(queue),
#          serializer = serializer_json_hintr())
RobotMermaid/BCRA documentation built on July 18, 2020, 1:46 p.m.