Running ‘testthat.R’ [0m/10m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rb3)
  > 
  > test_check("rb3")
  [ FAIL 12 | WARN 3 | SKIP 10 | PASS 153 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (10)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-company.R:11:3'): it should get listed suplement company info ──
  Error in `parse_con(txt, bigint_as_char)`: parse error: premature EOF
                                         
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rb3:::.company_suplement_info_get("PDGR", company_supl) at test-company.R:11:2
   2.   └─rb3::read_marketdata(f, template)
   3.     └─template$read_file(filename, parse_fields)
   4.       └─rb3 (local) res(x, ...)
   5.         └─jsonlite::fromJSON(filename)
   6.           └─jsonlite:::parse_and_simplify(...)
   7.             └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.               └─jsonlite:::parse_con(txt, bigint_as_char)
  ── Error ('test-company.R:22:3'): it should get listed suplement stock dividends ──
  Error in `parse_con(txt, bigint_as_char)`: parse error: premature EOF
                                         
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rb3:::.company_suplement_stock_dividends_get("PDGR", company_supl) at test-company.R:22:2
   2.   └─rb3:::.company_suplement_info_get(...)
   3.     └─rb3::read_marketdata(f, template)
   4.       └─template$read_file(filename, parse_fields)
   5.         └─rb3 (local) res(x, ...)
   6.           └─jsonlite::fromJSON(filename)
   7.             └─jsonlite:::parse_and_simplify(...)
   8.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   9.                 └─jsonlite:::parse_con(txt, bigint_as_char)
  ── Error ('test-company.R:40:3'): it should get listed suplement cash dividends ──
  Error in `parse_con(txt, bigint_as_char)`: parse error: premature EOF
                                         
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rb3:::.company_suplement_cash_dividends_get("PDGR", company_supl) at test-company.R:40:2
   2.   └─rb3:::.company_suplement_info_get(...)
   3.     └─rb3::read_marketdata(f, template)
   4.       └─template$read_file(filename, parse_fields)
   5.         └─rb3 (local) res(x, ...)
   6.           └─jsonlite::fromJSON(filename)
   7.             └─jsonlite:::parse_and_simplify(...)
   8.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   9.                 └─jsonlite:::parse_con(txt, bigint_as_char)
  ── Error ('test-company.R:58:3'): it should get listed suplement subscriptions ──
  Error in `parse_con(txt, bigint_as_char)`: parse error: premature EOF
                                         
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─rb3:::.company_suplement_subscriptions_get("PDGR", company_supl) at test-company.R:58:2
   2.   └─rb3:::.company_suplement_info_get(...)
   3.     └─rb3::read_marketdata(f, template)
   4.       └─template$read_file(filename, parse_fields)
   5.         └─rb3 (local) res(x, ...)
   6.           └─jsonlite::fromJSON(filename)
   7.             └─jsonlite:::parse_and_simplify(...)
   8.               └─jsonlite:::parseJSON(txt, bigint_as_char)
   9.                 └─jsonlite:::parse_con(txt, bigint_as_char)
  ── Failure ('test-company.R:66:3'): it should get company info for multiple companies ──
  all.equal(company_info$asset_name, c("PDGR", "PETR")) is not TRUE
  
  `actual` is a character vector ('target is NULL, current is character')
  `expected` is a logical vector (TRUE)
  ── Failure ('test-company.R:67:3'): it should get company info for multiple companies ──
  nrow(company_info) == 2 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-company.R:68:3'): it should get company info for multiple companies ──
  ncol(company_info) == 16 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-company.R:74:3'): it should get stock dividends for multiple companies ──
  all.equal(unique(company_info$asset_name), c("PDGR", "PETR")) is not TRUE
  
  `actual` is a character vector ('target is NULL, current is character')
  `expected` is a logical vector (TRUE)
  ── Failure ('test-company.R:75:3'): it should get stock dividends for multiple companies ──
  ncol(company_info) == 7 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-company.R:79:3'): it should get cash dividends for multiple companies ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `arrange(bind_rows(cs1, cs2), .data$symbol, .data$last_date_prior_ex)`: i In argument: `..1 = .data$symbol`.
  Caused by error in `.data$symbol`:
  ! Column `symbol` not found in `.data`.
  ── Failure ('test-company.R:88:3'): it should get subscriptions for multiple companies ──
  all.equal(unique(company_info$asset_name), c("INEP", "PDGR")) is not TRUE
  
  `actual` is a character vector ('target is NULL, current is character')
  `expected` is a logical vector (TRUE)
  ── Failure ('test-company.R:89:3'): it should get subscriptions for multiple companies ──
  ncol(company_info) == 10 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 12 | WARN 3 | SKIP 10 | PASS 153 ]
  Error: Test failures
  Execution halted