Running examples in ‘FinanceGraphs-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: fgts_dygraph
> ### Title: TIme series in Dygraph form
> ### Aliases: fgts_dygraph
> 
> ### ** Examples
> 
> # See Vignette for more extensive examples.
> # Basic Example
> fgts_dygraph(eqtypx, title="Stock Prices", ylab="Adjusted Close")
> 
> # With series Highlights, finer resolution and focused date range
> fgts_dygraph(eqtypx, dtstartfrac=0.8,hilightcols="IBM",hilightwidth=4,roller=3)
> 
> # Rebasing to 1/1/2022
> fgts_dygraph(eqtypx, title="Rebased Prices", ylab="Adjusted Close",rebase="2022-01-01")
> 
> # Using bands (.lo, .hi)
> toplot <- reerdta[REGION=="LATAM",.(cop=sum(value*(variable=="COL")),
+               reer=mean(value),reer.lo=min(value),reer.hi=max(value)),by=.(date)]
> fgts_dygraph(toplot,title="COP REER vs Latam peers",roller=3,hilightcols="cop",hilightwidth=4)
> 
> # Events Examples.  Notice how roller shortens with the series.
> # See Vignette for more extensive examples
> require(data.table)
Loading required package: data.table

Attaching package: ‘data.table’

The following object is masked from ‘package:base’:

    %notin%

> smalldta <- narrowbydtstr(eqtypx[,.(date,TLT,EEM)],"-3y::")
> fgts_dygraph(smalldta,events="doi,regm;doi,fedmoves")
> fgts_dygraph(smalldta,events="date,FOMO,2025-01-01,2025-06-01;date,xmas,2025-12-25")
> 
> # Events passed in as data.frames
> myevents = data.frame(end_date=as.Date(c("2024-03-10","2024-06-10")),
+              date=as.Date(c("2024-01-10","2024-04-10")),
+              text=c("range","event"),color=c("green","red"))
> fgts_dygraph(smalldta,events="doi,fedmoves",event_ds=myevents)
> 
> # Annotations on y axis
> fgts_dygraph(eqtypx,annotations="last,linevalue")
> fgts_dygraph(eqtypx,annotations="hline,100,at100,red;hline,200,at200;range,300,400")
> 
> # use with helpers
> 
> smalldta <- narrowbydtstr(eqtypx[,.(date,IBM,QQQ)],"-2y::")
> fgts_dygraph(smalldta,title="W TurnPts",event_ds=fg_findTurningPoints(smalldta[,.(date,QQQ)]))
> fgts_dygraph(smalldta,title="W Sentiment",event_ds=fg_cut_to_events(consumer_sent,center="zscore"))
> fgts_dygraph(smalldta,title="W dividends",event_ds=fg_tq_divs(c("IBM","QQQ")))
Error in fg_tq_divs(c("IBM", "QQQ")) : 
  Tidyquant not installed, cannot use fg_tq_divs
Calls: fgts_dygraph -> is.data.frame -> fg_tq_divs
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
               user system elapsed
fg_scatplot   5.712  0.109   6.707
fg_eventStudy 5.162  0.089   5.380
fg_prophet    4.603  0.188   5.868