assemble_call: Assembles a formatted function call from a function and a...

Description Usage Arguments Value Examples

View source: R/enchunk.R

Description

Assembles a formatted function call from a function and a list of parameters

Usage

1
assemble_call(fun_name, params, non_char = NULL)

Arguments

fun_name

Name of the function to be called (must be a character or coercible to a character).

params

Named list or vector containing the parameters for the fun call.

non_char

Names of the parameters whose values should not be interpreted as character values

Value

A character string with the formatted function call.

Examples

1
2
3
4
5
6
7
chronicle::assemble_call(fun_name = 'base::sapply',
                         params = list(X = 'iris',
                                       FUN= 'class'))
chronicle::assemble_call(fun_name = 'base::sapply',
                         params = list(X = 'iris',
                                       FUN= 'class'),
                         non_char = c('X', 'FUN'))

chronicle documentation built on June 25, 2021, 9:09 a.m.