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)
r-spatial/stars documentation built on April 22, 2024, 12:29 p.m.