tests/testthat/files/in-env.R

a <- 13
15

#* Some docs
#* @get /
function(req, res, forward){
  x <- 2
  x + a
}

#* Moar docs
#* @post /
useless <- function(req, res, forward){
  y <- 3
  y + a
}

Try the plumber package in your browser

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

plumber documentation built on Sept. 7, 2022, 1:05 a.m.