.cstr_repair_attributes | R Documentation |
Exported for custom constructor design. In the general case an object might have more attributes than given by the idiomatic
construction. .cstr_repair_attributes()
sets some of those attributes and ignores
others.
.cstr_repair_attributes(
x,
code,
...,
ignore = NULL,
idiomatic_class = NULL,
remove = NULL,
flag_s4 = TRUE,
repair_names = FALSE
)
x |
The object to construct |
code |
The code constructing the object before attribute repair |
... |
Forwarded to |
ignore |
The attributes that shouldn't be repaired, i.e. we expect them
to be set by the constructor already in |
idiomatic_class |
The class of the objects that the constructor produces,
if |
remove |
Attributes that should be removed, should rarely be useful. |
flag_s4 |
Boolean. Whether to use |
repair_names |
Boolean. Whether to repair the |
A character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.