Learn R Programming

mlr3misc (version 0.15.1)

as_callback: Convert to a Callback

Description

Convert object to a Callback or a list of Callback.

Usage

as_callback(x, ...)

# S3 method for Callback as_callback(x, clone = FALSE, ...)

as_callbacks(x, clone = FALSE, ...)

# S3 method for `NULL` as_callbacks(x, ...)

# S3 method for list as_callbacks(x, clone = FALSE, ...)

# S3 method for Callback as_callbacks(x, clone = FALSE, ...)

Value

Callback.

Arguments

x

(any)
Object to convert.

...

(any)
Additional arguments.

clone

(logical(1))
If TRUE, ensures that the returned object is not the same as the input x.