make_deparser: A constructor for a "typed" deparser

View source: R/core-deparse.R

make_deparserR Documentation

A constructor for a "typed" deparser

Description

A constructor for a "typed" deparser

Usage

make_deparser(predicate_fun, deparse_fun)

Arguments

predicate_fun

A function that takes a "lang" object and return a logical.

deparse_fun

A function that takes a "lang" object and return a character string.

Value

A list; a deparser ready to be dispatched by "type".

Examples

str(make_deparser(predicate_fun = rlang::is_call, deparse_fun = deparse))


sketch documentation built on Oct. 23, 2022, 5:07 p.m.