opts_glue: Constructive options for class 'glue'

View source: R/s3-glue.R

opts_glueR Documentation

Constructive options for class 'glue'

Description

These options will be used on objects of class 'glue'.

Usage

opts_glue(constructor = c("as_glue", "next"), ...)

Arguments

constructor

String. Name of the function used to construct the object, see Details section.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "as_glue" (default): Use glue::as_glue() on a character vector.

  • "next" : Use the constructor for the next supported class. Call .class2() on the object to see in which order the methods will be tried.

Use opts_character() to tweak the construction of the character vector constructed as part of the glue construction.

Value

An object of class <constructive_options/constructive_options_glue>


constructive documentation built on Oct. 22, 2026, 5:07 p.m.