config-i1 / smooth

The set of functions used for time series analysis and in forecasting.
89 stars 20 forks source link

sma() fails when workspace contains a variable called 'model' #134

Closed thunfischtoast closed 5 years ago

thunfischtoast commented 5 years ago

See this example code:

library(smooth)

sma(c(1:10), order = 5) # works
model <- "Hello!"
sma(c(1:10), order = 5) # fails

a <- c(1:10)
b <- c(1:10)
model <- lm(a ~ b)

sma(c(1:10), order = 5) # fails, but with another error
config-i1 commented 5 years ago

Thanks! This is now fixed in smooth v2.4.8.41001: a71ef8faf9cf42d462006d8ebb3c2ba0c65e3fdc