ykang / gratis

GRATIS: GeneRAting TIme Series with diverse and controllable characteristics
https://github.com/ykang/gratis
GNU General Public License v3.0
76 stars 29 forks source link

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

Closed wkrause13 closed 1 year ago

wkrause13 commented 2 years ago

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.

robjhyndman commented 2 years ago

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.

feng-li commented 1 year ago

It was solved with version 1.0.1.