pr_set_docs_callback: Set the callback to tell where the API visual documentation is located
Description
When set, it will be called with a character string corresponding
to the API visual documentation url. This allows RStudio to open swagger docs when a
Plumber router pr_run() method.
# NOT RUN {pr() %>%
pr_set_docs_callback(function(url) { message("API location: ", url) }) %>%
pr_get("/plus/<a:int>/<b:int>", function(a, b) { a + b }) %>%
pr_run()
# }