to_ast_callable: Convert a Callable Object to an ASTNode

View source: R/to_ast.R

to_ast_callableR Documentation

Convert a Callable Object to an ASTNode

Description

This function converts primitives, functions, and function definitions to ASTNode objects. No distinction is made between functions and function definitions since they have the same underlying code.

Usage

to_ast_callable(expr, is_primitive = FALSE)

Arguments

expr

(language) Quoted R code to be converted.

is_primitive

(logical) Whether or not the expression is a primitive.


nick-ulle/ast documentation built on May 14, 2024, 7:40 p.m.