opts_language: Constructive options for type 'language'

View source: R/s3-language.R

opts_languageR Documentation

Constructive options for type 'language'

Description

These options will be used on objects of type 'language'. By default this function is useless as nothing can be set, this is provided in case users want to extend the method with other constructors.

Usage

opts_language(constructor = c("default"), ...)

Arguments

constructor

String. Name of the function used to construct the object.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "default" : We use constructive's deparsing algorithm on attributeless calls, and use as.call() on other language elements when attributes need to be constructed.

Value

An object of class <constructive_options/constructive_options_language>


constructive documentation built on April 3, 2025, 9:39 p.m.