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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tk_get_timeseries
> ### Title: Get summary attributes from a time-series index
> ### Aliases: tk_get_timeseries tk_get_timeseries_signature
> ###   tk_get_timeseries_summary
> 
> ### ** Examples
> 
> library(tidyquant)
Loading required package: lubridate

Attaching package: ‘lubridate’

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

    date

Loading required package: PerformanceAnalytics
Loading required package: xts
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

    as.Date, as.Date.numeric


Attaching package: ‘PerformanceAnalytics’

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

    legend

Loading required package: quantmod
Loading required package: TTR
Version 0.4-0 included new data defaults. See ?getSymbols.
Loading required package: tidyverse
── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 2.2.1     ✔ purrr   0.2.4
✔ tibble  1.4.2     ✔ dplyr   0.7.4
✔ tidyr   0.8.0     ✔ stringr 1.3.0
✔ readr   1.1.1     ✔ forcats 0.3.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ lubridate::as.difftime() masks base::as.difftime()
✖ lubridate::date()        masks base::date()
✖ dplyr::filter()          masks stats::filter()
✖ dplyr::first()           masks xts::first()
✖ lubridate::intersect()   masks base::intersect()
✖ dplyr::lag()             masks stats::lag()
✖ dplyr::last()            masks xts::last()
✖ lubridate::setdiff()     masks base::setdiff()
✖ lubridate::union()       masks base::union()
> library(timetk)
> 
> # Works with time-based tibbles
> FB_tbl <- FANG %>% filter(symbol == "FB")
> FB_idx <- tk_index(FB_tbl)
> 
> tk_get_timeseries_signature(FB_idx)
# A tibble: 1,008 x 29
   index       index.num   diff  year year.iso  half quarter month month.xts
   <date>          <int>  <int> <int>    <int> <int>   <int> <int>     <int>
 1 2013-01-02 1357084800     NA  2013     2013     1       1     1         0
 2 2013-01-03 1357171200  86400  2013     2013     1       1     1         0
 3 2013-01-04 1357257600  86400  2013     2013     1       1     1         0
 4 2013-01-07 1357516800 259200  2013     2013     1       1     1         0
 5 2013-01-08 1357603200  86400  2013     2013     1       1     1         0
 6 2013-01-09 1357689600  86400  2013     2013     1       1     1         0
 7 2013-01-10 1357776000  86400  2013     2013     1       1     1         0
 8 2013-01-11 1357862400  86400  2013     2013     1       1     1         0
 9 2013-01-14 1358121600 259200  2013     2013     1       1     1         0
10 2013-01-15 1358208000  86400  2013     2013     1       1     1         0
# ... with 998 more rows, and 20 more variables: month.lbl <ord>, day <int>,
#   hour <int>, minute <int>, second <int>, hour12 <int>, am.pm <int>,
#   wday <int>, wday.xts <int>, wday.lbl <ord>, mday <int>, qday <int>,
#   yday <int>, mweek <int>, week <int>, week.iso <int>, week2 <int>,
#   week3 <int>, week4 <int>, mday7 <int>
> tk_get_timeseries_summary(FB_idx)
# A tibble: 1 x 12
  n.obs start      end        units scale tzone diff.minimum diff.q1
  <int> <date>     <date>     <chr> <chr> <chr>        <dbl>   <dbl>
1  1008 2013-01-02 2016-12-30 days  day   UTC         86400.  86400.
# ... with 4 more variables: diff.median <dbl>, diff.mean <dbl>, diff.q3 <dbl>,
#   diff.maximum <dbl>
> 
> 
> # Works with dates in any periodicity
> idx_weekly <- seq.Date(from = ymd("2016-01-01"), by = 'week', length.out = 6)
> 
> tk_get_timeseries_signature(idx_weekly)
# A tibble: 6 x 29
  index       index.num   diff  year year.iso  half quarter month month.xts
  <date>          <int>  <int> <int>    <int> <int>   <int> <int>     <int>
1 2016-01-01 1451606400     NA  2016     2015     1       1     1         0
2 2016-01-08 1452211200 604800  2016     2016     1       1     1         0
3 2016-01-15 1452816000 604800  2016     2016     1       1     1         0
4 2016-01-22 1453420800 604800  2016     2016     1       1     1         0
5 2016-01-29 1454025600 604800  2016     2016     1       1     1         0
6 2016-02-05 1454630400 604800  2016     2016     1       1     2         1
# ... with 20 more variables: month.lbl <ord>, day <int>, hour <int>,
#   minute <int>, second <int>, hour12 <int>, am.pm <int>, wday <int>,
#   wday.xts <int>, wday.lbl <ord>, mday <int>, qday <int>, yday <int>,
#   mweek <int>, week <int>, week.iso <int>, week2 <int>, week3 <int>,
#   week4 <int>, mday7 <int>
> tk_get_timeseries_summary(idx_weekly)
# A tibble: 1 x 12
  n.obs start      end        units scale tzone diff.minimum diff.q1
  <int> <date>     <date>     <chr> <chr> <chr>        <dbl>   <dbl>
1     6 2016-01-01 2016-02-05 days  week  UTC        604800. 604800.
# ... with 4 more variables: diff.median <dbl>, diff.mean <dbl>, diff.q3 <dbl>,
#   diff.maximum <dbl>
> 
> 
> # Works with zoo yearmon and yearqtr classes
> idx_yearmon <- seq.Date(from       = ymd("2016-01-01"),
+                         by         = "month",
+                         length.out = 12) %>%
+     as.yearmon()
> 
> tk_get_timeseries_signature(idx_yearmon)
Error in mutate_impl(.data, dots) : 
  Evaluation error: do not know how to convert 'index' to class “Date”.
Calls: tk_get_timeseries_signature ... <Anonymous> -> <Anonymous> -> mutate.tbl_df -> mutate_impl
Execution halted