inst/plumber/api.R

library(plumber)
r <- plumb("server.R")  # Where 'script.R' is the location of the file shown above
r$registerHook("exit", function(){
  print("Bye bye!")
})
r$run(port=8000)

Try the stars package in your browser

Any scripts or data that you put into this service are public.

stars documentation built on Sept. 11, 2023, 5:10 p.m.