gratis icon indicating copy to clipboard operation
gratis copied to clipboard

Shiny app cannot generate data with error 'could not find function "ga_ts"'

Open wkrause13 opened this issue 2 years ago • 1 comments

I am attempting to use the shiny app launched by calling app_gratis(), however, there are a number of functions called in the shiny app that are no longer exported.

I was able to get the app working by manually exporting or recreating the missing functions.

install.packages("doParallel")
eval(parse(text=paste0('ga_ts', '<-gratis:::', 'ga_ts')))
eval(parse(text=paste0('fitness_ts', '<-gratis:::', 'fitness_ts')))
nsdiffs1 <- function(x) {
  c(nsdiffs = ifelse(frequency(x) == 1L, -1, forecast::nsdiffs(x)))
}

I am not sure if that's the best approach, but it looks sufficient to do some exploratory work.

wkrause13 avatar May 23 '22 01:05 wkrause13

Sorry about that. When I rewrote a lot of the package, I didn't update the Shiny app. Feel free to do a PR with the required fixes.

robjhyndman avatar May 23 '22 23:05 robjhyndman

It was solved with version 1.0.1.

feng-li avatar Mar 24 '23 03:03 feng-li