check_predict_method_throw_error: Validate estimate_model method returns an object with a...

Description Usage Arguments Examples

View source: R/utils.R

Description

Helper function that checks if the object returned from the estimate_model method has a predict method defined for it.

Usage

1

Arguments

func_return_object

The object returned from the estimate_model method.

Examples

1
2
3
4
5
6
7
8
## Not run: 
estimation_method <- function(df) lm(eruptions ~ 0 + waiting, df)
data <- faithful
model_estimate <- estimation_method(data)
check_predict_method_throw_error(model_estimate)
# NULL

## End(Not run)

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