util_deparse1: Expression De-Parsing

util_deparse1R Documentation

Expression De-Parsing

Description

Turn unevaluated expressions into character strings.

Arguments

expr

any R expression.

collapse

a string, passed to paste()

width.cutoff

integer in [20, 500] determining the cutoff (in bytes) at which line-breaking is tried.

...

further arguments passed to deparse().

Details

This is a simple utility function for R < 4.0.0 to ensure a string result (character vector of length one), typically used in name construction, as util_deparse1(substitute(.)).

This avoids a dependency on backports and on R >= 4.0.0.

Value

the deparsed expression


dataquieR documentation built on July 26, 2023, 6:10 p.m.