Professional Documents
Culture Documents
Plumber uses special comments to turn any arbitrary R code into API default Plumber serializes the R object returned into JavaScript
endpoints. The example below defines a function that takes the msg Object Notation (JSON). Other serializers, including custom
argument and returns it embedded in additional text. curl command used to
serializers, are identified using the @serializer send request
[serializer name] tag. All registered serializers can be
Plumber @ decorators viewed with registered_serializers().
comments library(plumber) define API
begin with #* characteristics Filter name
Identify as library(plumber)
RStudio® is a trademark of RStudio, Inc. • CC BY SA RStudio • info@rstudio.com • 844-448-1212 • rstudio.com • Learn more at www.rplumber.io • plumber 1.1.0 • Updated: 2021-03
ft
ff
ff
ft