Running 'testthat.R' [16s/29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tidyquant)
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  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
  == Need to Learn tidyquant? ====================================================
  Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
  </> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
  > library(tidyverse)
  -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
  v ggplot2 3.3.5     v purrr   0.3.4
  v tibble  3.1.6     v dplyr   1.0.7
  v tidyr   1.1.4     v stringr 1.4.0
  v readr   2.0.2     v forcats 0.5.1
  -- Conflicts ------------------------------------------ tidyverse_conflicts() --
  x lubridate::as.difftime() masks base::as.difftime()
  x lubridate::date()        masks base::date()
  x readr::edition_get()     masks testthat::edition_get()
  x dplyr::filter()          masks stats::filter()
  x dplyr::first()           masks xts::first()
  x lubridate::intersect()   masks base::intersect()
  x purrr::is_null()         masks testthat::is_null()
  x dplyr::lag()             masks stats::lag()
  x dplyr::last()            masks xts::last()
  x readr::local_edition()   masks testthat::local_edition()
  x dplyr::matches()         masks tidyr::matches(), testthat::matches()
  x lubridate::setdiff()     masks base::setdiff()
  x lubridate::union()       masks base::union()
  > library(dplyr)
  > library(tibble)
  > 
  > test_check("tidyquant")
  == Skipped tests ===============================================================
  * On CRAN (2)
  
  == Failed tests ================================================================
  -- Error (test-tq_portfolio.R:21:1): (code run outside of `test_that()`) -------
  <vctrs_error_incompatible_size/vctrs_error_incompatible/vctrs_error/rlang_error/error/condition>
  Error: Can't recycle `..1` (size 2) to match `..2` (size 3).
  Backtrace:
       x
    1. +-tidyquant::tq_portfolio(...) test-tq_portfolio.R:21:0
    2. | +-tidyquant::tq_portfolio_(...)
    3. | \-tidyquant:::tq_portfolio_.grouped_df(...)
    4. |   +-tidyquant::tq_portfolio_(...)
    5. |   \-tidyquant:::tq_portfolio_.tbl_df(...)
    6. |     \-tidyquant:::tq_portfolio_base_(...)
    7. |       +-base::tryCatch(...)
    8. |       | \-base:::tryCatchList(expr, classes, parentenv, handlers)
    9. |       |   \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10. |       |     \-base:::doTryCatch(return(expr), name, parentenv, handler)
   11. |       \-tidyquant:::map_weights(weights, assets_col)
   12. |         \-dplyr::bind_cols(unique(assets_col), tibble::tibble(weights))
   13. |           \-vctrs::vec_cbind(!!!dots, .name_repair = .name_repair)
   14. \-vctrs::stop_incompatible_size(...)
   15.   \-vctrs:::stop_incompatible(...)
   16.     \-vctrs:::stop_vctrs(...)
  -- Error (test-tq_transmute.R:8:1): (code run outside of `test_that()`) --------
  Error in `tq_transmute_.default(data = data, select = lazyeval::expr_text(select), 
      mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename, 
      ... = ...)`: data must be a tibble or data.frame object
  Backtrace:
      x
   1. +-`%>%`(...) test-tq_transmute.R:8:0
   2. \-tidyquant::tq_transmute(...)
   3.   +-tidyquant::tq_transmute_(...)
   4.   \-tidyquant:::tq_transmute_.default(...)
  
  [ FAIL 2 | WARN 45 | SKIP 2 | PASS 70 ]
  Error: Test failures
  In addition: Warning messages:
  1: In for (i in seq_along(specs)) { :
    closing unused connection 7 (https://query1.finance.yahoo.com/v7/finance/download/XYZ?period1=1293840000&period2=1636502400&interval=1d&events=history&crumb=6CMkYENH6.b)
  2: In for (i in seq_along(specs)) { :
    closing unused connection 6 (https://query1.finance.yahoo.com/v7/finance/download/XYZ?period1=1293840000&period2=1636502400&interval=1d&events=history&crumb=wzIx3JCv72G)
  3: In for (i in seq_along(specs)) { :
    closing unused connection 5 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  4: In for (i in seq_along(specs)) { :
    closing unused connection 4 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
  5: In for (nme in names(lhs)) { :
    closing unused connection 4 (https://query1.finance.yahoo.com/v7/finance/download/AAPL?period1=1262304000&period2=1451520000&interval=1d&events=history&crumb=vBqdefSNi/3)
  Execution halted