Hi, and welcome!
For syntax questions, please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? because they are kind of hard to answer in the abstract.
The mable
package may or may not be the best launching pad for model evaluation and comparison. Take a look at Forecasting Principles and Practices by authors of the forecast
package, especially chapter 3, before getting engaged to a specific tool.