forecastxgb-r-package icon indicating copy to clipboard operation
forecastxgb-r-package copied to clipboard

forecast.xgbar() is inaccessible with R 3.5.0

Open SpencerDH opened this issue 6 years ago • 1 comments

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.

SpencerDH avatar May 25 '18 17:05 SpencerDH

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?

ellisp avatar Jun 06 '18 21:06 ellisp