tests/testthat/files/warn.R

#* @get /warning
function(res){
  warning("this is a warning")
  res$status <- (options("warn")[[1]])
}

Try the plumber package in your browser

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

plumber documentation built on May 29, 2024, 8:52 a.m.