robjhyndman / forecast

Forecasting Functions for Time Series and Linear Models
http://pkg.robjhyndman.com/forecast
1.1k stars 340 forks source link

Avoid automatic printing of summary results #883

Closed robjhyndman closed 3 years ago

robjhyndman commented 3 years ago

summary.Arima(), summary.ets() and summary.forecast() involve calls to print() so they can't be called and stored without printing some output. It would be better if they didn't print when the results are saved.

See https://stackoverflow.com/q/66961354/144157 for an example of the problem that can occur.