plumber icon indicating copy to clipboard operation
plumber copied to clipboard

Updates to 'rendering output' chapter

Open cpsievert opened this issue 4 years ago • 2 comments

  1. Add new serializers to the table on https://www.rplumber.io/docs/rendering-and-output.html#serializers

  2. Add at least one example of a custom serializer. If not a real example, perhaps just copy an implementation of an exported serializer?

  3. Add a simple description of the main aspects of the response object (i.e., body, res) as well as a pointer to where folks can learn more (i.e., rook documentation)

  4. In section 4.2.3, I think

#' @png (width = 400, height = 500)

Should be

#' @png list(width = 400, height = 500)

cpsievert avatar Jun 23 '20 01:06 cpsievert

In section 4.2.3, I think

This is inconsistent plumb() behavior. @IMAGETYPE(arg1..., arg2...) is valid syntax. Other serializers use the @serializer SERIALIZERNAME list(arg1..., arg2...) syntax.

schloerke avatar Jun 23 '20 01:06 schloerke

Oh, right, makes sense. That seems worth explaining as well, maybe just under the table of serializers

cpsievert avatar Jun 23 '20 01:06 cpsievert