Skip to contents

This function sets the value of an attribute or a method.

Usage

BASE$set_attr(attr_name, attr_val)

Arguments

attr_name

Character. Attribute name.

attr_val

Any value.

Value

Return the object itself.

Examples


test <- BASE$instantiate()
test$set_attr("x", 1)
test$x
#> [1] 1