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 102.  102.   99.8 102.  37912400    102.        0      
 2 2016-01-05 103.  104.  102.  103.  23258200    103.        0.00498
 3 2016-01-06 101.  104.  101.  103.  25096200    103.        0.00233
 4 2016-01-07 100.  101.   97.3  97.9 45172900     97.9      -0.0503 
 5 2016-01-08  99.9 100.   97.0  97.3 35402300     97.3      -0.00604
 6 2016-01-11  97.9  98.6  95.4  97.5 29932400     97.5       0.00185
 7 2016-01-12  99   100.0  97.6  99.4 28395400     99.4       0.0189 
 8 2016-01-13 101.  101.   95.2  95.4 33410600     95.4      -0.0404 
 9 2016-01-14  95.8  98.9  92.4  98.4 48658600     98.4       0.0302 
10 2016-01-15  94.0  96.4  93.5  95.0 45935600     95.0      -0.0352 
# … 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 102.  102.   99.8 102.  37912400    102.   NA  
 2 2016-01-05 103.  104.  102.  103.  23258200    103.   NA  
 3 2016-01-06 101.  104.  101.  103.  25096200    103.   NA  
 4 2016-01-07 100.  101.   97.3  97.9 45172900     97.9  NA  
 5 2016-01-08  99.9 100.   97.0  97.3 35402300     97.3  NA  
 6 2016-01-11  97.9  98.6  95.4  97.5 29932400     97.5  NA  
 7 2016-01-12  99   100.0  97.6  99.4 28395400     99.4  NA  
 8 2016-01-13 101.  101.   95.2  95.4 33410600     95.4  NA  
 9 2016-01-14  95.8  98.9  92.4  98.4 48658600     98.4  NA  
10 2016-01-15  94.0  96.4  93.5  95.0 45935600     95.0  95.0
# … 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:
cannot open URL 'https://fred.stlouisfed.org/series/DCOILWTICO/downloaddata/DCOILWTICO.csv'
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