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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: tq_performance
> ### Title: Computes a wide variety of summary performance metrics from
> ###   stock or portfolio returns
> ### Aliases: tq_performance tq_performance_ tq_performance_fun_options
> 
> ### ** Examples
> 
> # Load libraries
> library(tidyquant)
> library(dplyr)

######################### Warning from 'xts' package ##########################
#                                                                             #
# The dplyr lag() function breaks how base R's lag() function is supposed to  #
# work, which breaks lag(my_xts). Calls to lag(my_xts) that you type or       #
# source() into this session won't work correctly.                            #
#                                                                             #
# Use stats::lag() to make sure you're not using dplyr::lag(), or you can add #
# conflictRules('dplyr', exclude = 'lag') to your .Rprofile to stop           #
# dplyr from breaking base R's lag() function.                                #
#                                                                             #
# Code in packages is not affected. It's protected by R's namespace mechanism #
# Set `options(xts.warn_dplyr_breaks_lag = FALSE)` to suppress this warning.  #
#                                                                             #
###############################################################################

Attaching package: ‘dplyr’

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

    first, last

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

    filter, lag

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

    intersect, setdiff, setequal, union

> 
> # Use FANG data set
> data(FANG)
> 
> # Get returns for individual stock components grouped by symbol
> Ra <- FANG %>%
+     group_by(symbol) %>%
+     tq_transmute(adjusted, periodReturn, period = "monthly", col_rename = "Ra")
> 
> # Get returns for SP500 as baseline
> Rb <- "^GSPC" %>%
+     tq_get(get  = "stock.prices",
+            from = "2010-01-01",
+            to   = "2015-12-31") %>%
+     tq_transmute(adjusted, periodReturn, period = "monthly", col_rename = "Rb")
Warning: x = '^GSPC', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "^GSPC", env = <environment>, verbose = FALSE, : Unable to import “^GSPC”.
Recv failure: Connection reset by peer

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