Learn R Programming

constructive (version 1.1.0)

.cstr_wrap: Wrap argument code in function call

Description

Exported for custom constructor design. Generally called through .cstr_apply().

Usage

.cstr_wrap(args, fun, new_line = FALSE)

Value

A character vector.

Arguments

args

A character vector containing the code of arguments.

fun

A string. The name of the function to use in the function call. Use fun = "" to wrap in parentheses.

new_line

Boolean. Whether to insert a new line between "fun(" and the closing ")".