inst/doc/introduction.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

knitr::read_chunk(path = "../inst/plumber/capitalize/plumber.R",
                  from = 9,
                  labels = "capitalize")

## ----capitalize, eval = FALSE-------------------------------------------------
#  library(plumber)
#  library(plumbertableau)
#  
#  #* @apiTitle String utilities
#  #* @apiDescription Simple functions for mutating strings
#  
#  #* Capitalize incoming text
#  #* @tableauArg str_value:[character] Strings to be capitalized
#  #* @tableauReturn [character] A capitalized string(s)
#  #* @post /capitalize
#  function(str_value) {
#    toupper(str_value)
#  }
#  
#  # The Plumber router modifier tableau_extension is required
#  #* @plumber
#  tableau_extension

Try the plumbertableau package in your browser

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

plumbertableau documentation built on Aug. 6, 2021, 9:05 a.m.