validate_output(func, predicate)
validate_output(auto.arima, checkresiduals)
The output of auto.arima is passed to checkresiduals.
- If
checkresiduals returns TRUE, then the decorator returns the auto.arima output
- If
checkresiduals returns FALSE then the decorator prompts an error
validate_output(func, predicate)The output of
auto.arimais passed tocheckresiduals.checkresidualsreturns TRUE, then the decorator returns theauto.arimaoutputcheckresidualsreturns FALSE then the decorator prompts an error