This example runs the plumber.io package and loads an api for absolute.risk
, relative.risk
, check.summary
, risk.summary
.
R
and run install.packages("plumber")
R
cd web
Rscript runner.R
http://localhost:8000/absolute.risk
?age=70biopsies=0&hyperplasia=1&menstruation=10&first_birth=20&relatives=1&race=1&Raw_Ind=1&Avg_White=0
http://localhost:8000/absolute.risk
to url{
"age": 75,
"biopsies":1,
"hyperplasia": 1,
"menstruation": 19,
"first_birth": 40,
"relatives": 5,
"race": 1,
"Raw_Ind": 1,
"Avg_White": 0
}
devtools::install_github("trestletech/plumber")
to loose error on POST request
(needs devtools installed)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.