Running examples in 'incidence-Ex.R' failed
The error most likely occurred in:

> ### Name: fit
> ### Title: Fit exponential models to incidence data
> ### Aliases: fit fit_optim_split print.incidence_fit
> ###   print.incidence_fit_list
> 
> ### ** Examples
> 
> 
> if (require(outbreaks)) { withAutoprint({
+  dat <- ebola_sim$linelist$date_of_onset
+ 
+  ## EXAMPLE WITH A SINGLE MODEL
+ 
+  ## compute weekly incidence
+  i.7 <- incidence(dat, interval=7)
+  plot(i.7)
+  plot(i.7[1:20])
+ 
+  ## fit a model on the first 20 weeks
+  f <- fit(i.7[1:20])
+  f
+  names(f)
+  head(get_info(f, "pred"))
+ 
+  ## plot model alone (not recommended)
+  plot(f)
+ 
+  ## plot data and model (recommended)
+  plot(i.7, fit = f)
+  plot(i.7[1:25], fit = f)
+ 
+ ## piping versions
+ if (require(magrittr)) { withAutoprint({
+   plot(i.7) %>% add_incidence_fit(f)
+ 
+ 
+   ## EXAMPLE WITH 2 PHASES
+   ## specifying the peak manually
+   f2 <- fit(i.7, split = as.Date("2014-10-15"))
+   f2
+   plot(i.7) %>% add_incidence_fit(f2)
+ 
+   ## finding the best 'peak' date
+   f3 <- fit_optim_split(i.7)
+   f3
+   plot(i.7) %>% add_incidence_fit(f3$fit)
+ })}
+ 
+ })}
Loading required package: outbreaks
> dat <- ebola_sim$linelist$date_of_onset
> i.7 <- incidence(dat, interval = 7)
Error in namespaceExport(ns, exports) : 
  undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri_enc_detect, stri_enc_detect2, stri_enc_fromutf32, stri_enc_get, stri_enc_inf
Calls: withAutoprint ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted