Skip to contents

Define a generic UDF to be executed within a task graph

Usage

delayed_generic_udf(
  udf = NULL,
  registered_udf_name = NULL,
  args = NULL,
  name = NULL,
  namespace = NULL,
  language = "r"
)

Arguments

udf

An R function. Arguments are specified separately via args. One of udf and registered_udf_name must be non-null.

registered_udf_name

Name of a registered UDF, of the form namespace/udfname. Arguments are specified separately via args. One of udf and registered_udf_name must be non-null.

name

Optional – e.g. a or b. If omitted, it defaults to a UUID.

namespace

If supplied, a namespace to use for executing this particular node. If omitted, a namespace can be applied at your top-level call to compute. If omitted there as well, your logged-in account's default namespace will be used.

language

If omitted, defaults to "r". Can be set to "python"

Value

The return value from the UDF as an R object.