Learn R Programming

dataquieR (version 2.0.1)

util_deparse1: Expression De-Parsing

Description

Turn unevaluated expressions into character strings.

Value

the deparsed expression

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.