'$ operator is invalid for atomic vector

I'm using rugarch::ugarchforecast to do a 1 step ahead rolling forecast. I keep getting the error message $ operator is invalid for atomic vector, but I'm not using the $ operator, nor am I using an atomic vector. Why do I get this error and how do I fix it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source