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

> ### Name: match_prices
> ### Title: Get Fair Market Value (FMV) of transactions
> ### Aliases: match_prices
> 
> ### ** Examples
> 
> data <- format_shakepay(data_shakepay)[c(1:2)]
> match_prices(data)
❯ Scraping historical crypto data

Error: cannot open the connection to 'https://web-api.coinmarketcap.com/v1/cryptocurrency/ohlcv/historical?convert=CAD&time_end=1678233600&time_start=1609459200&interval=daily&id=1'
Retrying in 60 seconds.
Error in prepare_list_prices(coins = my.coins, start.date = start.date,  : 
  object 'coin_hist' not found
Calls: match_prices -> prepare_list_prices
Execution halted
Initiating curl with CURL_SSL_BACKEND: openssl
Running examples in 'cryptoTax-Ex.R' failed
The error most likely occurred in:

> ### Name: prepare_report
> ### Title: Prepare info for full crypto tax report
> ### Aliases: prepare_report
> 
> ### ** Examples
> 
> list.prices <- prepare_list_prices(coins = "BTC", start.date = "2021-01-01")
Could not reach the CoinMarketCap API at this time
> all.data <- format_shakepay(data_shakepay)
> formatted.ACB <- format_ACB(all.data, verbose = FALSE)
> x <- prepare_report(formatted.ACB, list.prices = list.prices)
Error in `mutate()`:
i In argument: `date = last(list.prices$timestamp)`.
i In group 1: `currency = "BTC"`.
Caused by error in `vec_init()`:
! `x` must be a vector, not `NULL`.
Backtrace:
     x
  1. +-cryptoTax::prepare_report(formatted.ACB, list.prices = list.prices)
  2. | \-cryptoTax::report_overview(...)
  3. |   \-... %>% ...
  4. +-dplyr::mutate(., date.temp = .data$date, date = last(list.prices$timestamp))
  5. +-dplyr:::mutate.data.frame(., date.temp = .data$date, date = last(list.prices$timestamp))
  6. | \-dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. |   +-base::withCallingHandlers(...)
  8. |   \-dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. |     \-mask$eval_all_mutate(quo)
 10. |       \-dplyr (local) eval()
 11. +-dplyr::last(list.prices$timestamp)
 12. | \-dplyr::nth(x, -1L, order_by = order_by, default = default, na_rm = na_rm)
 13. |   \-dplyr:::check_nth_default(default, x = x)
 14. |     \-vctrs::vec_init(x)
 15. \-vctrs:::stop_scalar_type(`<fn>`(NULL), "x", `<fn>`(vec_init()))
 16.   \-vctrs:::stop_vctrs(...)
 17.     \-rlang::abort(message, class = c(class, "vctrs_error"), ..., call = vctrs_error_call(call))
Execution halted
Error(s) in re-building vignettes:
--- re-building 'ACB.Rmd' using rmarkdown
--- finished re-building 'ACB.Rmd'

--- re-building 'references.Rmd' using rmarkdown
--- finished re-building 'references.Rmd'

--- re-building 'report.Rmd' using rmarkdown
Initiating curl with CURL_SSL_BACKEND: openssl
Quitting from lines 91-95 (report.Rmd) 
Error: processing vignette 'report.Rmd' failed with diagnostics:
i In argument: `date = last(list.prices$timestamp)`.
i In group 1: `currency = "ADA"`.
Caused by error in `vec_init()`:
! `x` must be a vector, not `NULL`.
--- failed re-building 'report.Rmd'

SUMMARY: processing the following file failed:
  'report.Rmd'

Error: Vignette re-building failed.
Execution halted