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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tq_mutate
> ### Title: Mutates quantitative data
> ### Aliases: tq_mutate tq_mutate tq_mutate_ tq_mutate_xy tq_mutate_xy_
> ###   tq_mutate_fun_options tq_transmute tq_transmute_ tq_transmute_xy
> ###   tq_transmute_xy_ tq_transmute_fun_options
> 
> ### ** Examples
> 
> # Load libraries
> library(tidyquant)
> 
> ##### Basic Functionality
> 
> fb_stock_prices  <- tq_get("FB",
+                            get  = "stock.prices",
+                            from = "2016-01-01",
+                            to   = "2016-12-31")
> 
> # Example 1: Return logarithmic daily returns using periodReturn()
> fb_stock_prices %>%
+     tq_mutate(select = close, mutate_fun = periodReturn,
+               period = "daily", type = "log")
# A tibble: 252 x 8
         date   open   high    low  close   volume adjusted daily.returns
       <date>  <dbl>  <dbl>  <dbl>  <dbl>    <dbl>    <dbl>         <dbl>
 1 2016-01-04 101.95 102.24  99.75 102.22 37912400   102.22   0.000000000
 2 2016-01-05 102.89 103.71 101.67 102.73 23258200   102.73   0.004976853
 3 2016-01-06 101.13 103.77 100.90 102.97 25096200   102.97   0.002333477
 4 2016-01-07 100.50 101.43  97.30  97.92 45172900    97.92  -0.050286895
 5 2016-01-08  99.88 100.50  97.03  97.33 35402300    97.33  -0.006043511
 6 2016-01-11  97.91  98.60  95.39  97.51 29873100    97.51   0.001847670
 7 2016-01-12  99.00  99.96  97.55  99.37 28395400    99.37   0.018895330
 8 2016-01-13 100.58 100.58  95.21  95.44 33410600    95.44  -0.040352489
 9 2016-01-14  95.85  98.87  92.45  98.37 48658600    98.37   0.030238111
10 2016-01-15  93.98  96.38  93.54  94.97 46132800    94.97  -0.035174847
# ... with 242 more rows
> 
> # Example 2: Use tq_mutate_xy to use functions with two columns required
> fb_stock_prices %>%
+     tq_mutate_xy(x = close, y = volume, mutate_fun = EVWMA,
+                  col_rename = "EVWMA")
# A tibble: 252 x 8
         date   open   high    low  close   volume adjusted EVWMA
       <date>  <dbl>  <dbl>  <dbl>  <dbl>    <dbl>    <dbl> <dbl>
 1 2016-01-04 101.95 102.24  99.75 102.22 37912400   102.22    NA
 2 2016-01-05 102.89 103.71 101.67 102.73 23258200   102.73    NA
 3 2016-01-06 101.13 103.77 100.90 102.97 25096200   102.97    NA
 4 2016-01-07 100.50 101.43  97.30  97.92 45172900    97.92    NA
 5 2016-01-08  99.88 100.50  97.03  97.33 35402300    97.33    NA
 6 2016-01-11  97.91  98.60  95.39  97.51 29873100    97.51    NA
 7 2016-01-12  99.00  99.96  97.55  99.37 28395400    99.37    NA
 8 2016-01-13 100.58 100.58  95.21  95.44 33410600    95.44    NA
 9 2016-01-14  95.85  98.87  92.45  98.37 48658600    98.37    NA
10 2016-01-15  93.98  96.38  93.54  94.97 46132800    94.97 94.97
# ... with 242 more rows
> 
> # Example 3: Using tq_mutate to work with non-OHLC data
> tq_get("DCOILWTICO", get = "economic.data") %>%
+     tq_mutate(select = price, mutate_fun = lag.xts, k = 1, na.pad = TRUE)
Warning: x = 'DCOILWTICO', get = 'economic.data': Error: Failed to download file. Error message:
download from 'https://fred.stlouisfed.org/series/DCOILWTICO/downloaddata/DCOILWTICO.csv' failed
If this is related to https, possible solutions are:
1. Explicitly pass method= via the getSymbols call (or via setDefaults)
2. Install downloader, which may be able to automagically determine a method
3. Set the download.file.method global option

Error in tq_mutate_.default(data = data, select = lazyeval::expr_text(select),  : 
  data must be a tibble or data.frame object
Calls: %>% ... <Anonymous> -> tq_mutate -> tq_mutate_ -> tq_mutate_.default
Execution halted