Learn R Programming

sketch (version 1.1.20.3)

make_deparser: A constructor for a "typed" deparser

Description

A constructor for a "typed" deparser

Usage

make_deparser(predicate_fun, deparse_fun)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab