check_unary_func_throw_error: Validate ml_pipeline_builder transform method is a unary...

Description Usage Arguments Examples

View source: R/utils.R

Description

Helper function that checks if a ml_pipeline_builder method is unary function (if it isn't a NULL returning function), and if it isn't, throws an error that is customised with the method function name.

Usage

1

Arguments

func

A ml_pipeline_builder method.

func_name

The name of the ml_pipeline_builder method.

Examples

1
2
3
4
5
6
## Not run: 
transform_method <- function(df) df
check_unary_func_throw_error(transform_method, "transform_method")
# NULL

## End(Not run)

pipeliner documentation built on May 1, 2019, 6:49 p.m.