BASE$instantiate {bandicoot}R Documentation

Instantiate method

Description

This function will new an instance using the ..new.. method, then initialized the instance with the ..init.. method.

Usage

BASE$instantiate(
  ...,
  env = new.env(parent = parent.frame()),
  init_call = sys.call()
)

Arguments

...

Arguments passed to ..init.. method.

env

Environment. The instance environment.

init_call

Call. Contents of the ..init_call... It is recommended to leave it as default.

Value

An instance environment.

Examples


BASE$..dir..()

# Build an instance
base_instance <- BASE$instantiate()

base_instance$..dir..()

[Package bandicoot version 1.0.0 Index]