opts_list {constructive}R Documentation

Constructive options for type 'list'

Description

These options will be used on objects of type 'list'.

Usage

opts_list(
  constructor = c("list", "list2"),
  ...,
  trim = NULL,
  fill = c("vector", "new_list", "+", "...", "none")
)

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

trim

NULL or integerish. Maximum of elements showed before it's trimmed. Note that it will necessarily produce code that doesn't reproduce the input. This code will parse without failure but its evaluation might fail.

fill

String. Method to use to represent the trimmed elements.

Details

Depending on constructor, we construct the object as follows:

If trim is provided, depending on fill we will present trimmed elements as followed:

When trim is used the output is parsable but might not be possible to evaluate, especially with fill = "...". In that case you might want to set check = FALSE

Value

An object of class <constructive_options/constructive_options_list>


[Package constructive version 1.0.1 Index]