ellisp / forecastxgb-r-package

An R package for time series models and forecasts with xgboost compatible with {forecast} S3 classes
GNU General Public License v3.0
140 stars 42 forks source link

forecast.xgbar() is inaccessible with R 3.5.0 #43

Open SpencerDH opened 6 years ago

SpencerDH commented 6 years ago

I have installed forecastxgb from GitHub, but forecast.xgbar() is unavailable even when the package is loaded into the workspace. The version of R being used is 3.5.0.

Reproducible example:

`install_github("ellisp/forecastxgb-r-package/pkg") library(forecastxgb)

sample_ts <- ts(sample(8:30, replace = TRUE, size = 25))

xgbar_season <- xgbar(sample_ts)

fcast <- forecast.xgbar(xgbar_season)`

This returns the error:

Error in forecast.xgbar(xgbar_season) : could not find function "forecast.xgbar"

xgbar() works fine. Additionally, the help files for the forecastxgb functions are unavailable and return an error saying that the forecastxgb.rdb file is corrupt.

ellisp commented 6 years ago

forecast.xgbar isn't designed to be called explicitly but should work as just the .xgbar method for forecast. Does forecast(xgbar_season) work for you?

I can't reproduce the problem with the help files; perhaps try re-installing?