Convert object to a Task or a list of Task.

as_task(x, ...)

# S3 method for Task
as_task(x, clone = FALSE, ...)

as_tasks(x, ...)

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

# S3 method for Task
as_tasks(x, clone = FALSE, ...)

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.