Running ‘testthat.R’ [13s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rb3)
  > 
  > test_check("rb3")
  [ FAIL 8 | WARN 0 | SKIP 10 | PASS 153 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (10)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-company.R:10: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_supplement_get("PDGR") at test-company.R:10:2
   2.   └─rb3::read_marketdata(f, template, do_cache = do_cache)
   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:21: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_supplement_get("PDGR") at test-company.R:21:2
   2.   └─rb3::read_marketdata(f, template, do_cache = do_cache)
   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:39: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_supplement_get("PDGR") at test-company.R:39:2
   2.   └─rb3::read_marketdata(f, template, do_cache = do_cache)
   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:57: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_supplement_get("PDGR") at test-company.R:57:2
   2.   └─rb3::read_marketdata(f, template, do_cache = do_cache)
   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:64:3'): it should get company info for multiple companies ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(seq_len(nrow(codes)), rxx)`: i In index: 1.
  Caused by error in `parse_con()`:
  ! parse error: premature EOF
                                         
                       (right here) ------^
  Backtrace:
       ▆
    1. ├─rb3::company_info_get(c("PDGR", "PETR")) at test-company.R:64:2
    2. │ └─rb3:::.company_mget(...)
    3. │   └─purrr::map(seq_len(nrow(codes)), rxx)
    4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─rb3 (local) .f(.x[[i]], ...)
    9. │         └─rb3:::.company_supplement_get(...)
   10. │           └─rb3::read_marketdata(f, template, do_cache = do_cache)
   11. │             └─template$read_file(filename, parse_fields)
   12. │               └─rb3 (local) res(x, ...)
   13. │                 └─jsonlite::fromJSON(filename)
   14. │                   └─jsonlite:::parse_and_simplify(...)
   15. │                     └─jsonlite:::parseJSON(txt, bigint_as_char)
   16. │                       └─jsonlite:::parse_con(txt, bigint_as_char)
   17. └─base::.handleSimpleError(...)
   18.   └─purrr (local) h(simpleError(msg, call))
   19.     └─cli::cli_abort(...)
   20.       └─rlang::abort(...)
  ── Error ('test-company.R:72:3'): it should get stock dividends for multiple companies ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(seq_len(nrow(codes)), rxx)`: i In index: 1.
  Caused by error in `parse_con()`:
  ! parse error: premature EOF
                                         
                       (right here) ------^
  Backtrace:
       ▆
    1. ├─rb3::company_stock_dividends_get(c("PDGR", "PETR")) at test-company.R:72:2
    2. │ └─rb3:::.company_mget(...)
    3. │   └─purrr::map(seq_len(nrow(codes)), rxx)
    4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─rb3 (local) .f(.x[[i]], ...)
    9. │         └─rb3:::.company_supplement_get(...)
   10. │           └─rb3::read_marketdata(f, template, do_cache = do_cache)
   11. │             └─template$read_file(filename, parse_fields)
   12. │               └─rb3 (local) res(x, ...)
   13. │                 └─jsonlite::fromJSON(filename)
   14. │                   └─jsonlite:::parse_and_simplify(...)
   15. │                     └─jsonlite:::parseJSON(txt, bigint_as_char)
   16. │                       └─jsonlite:::parse_con(txt, bigint_as_char)
   17. └─base::.handleSimpleError(...)
   18.   └─purrr (local) h(simpleError(msg, call))
   19.     └─cli::cli_abort(...)
   20.       └─rlang::abort(...)
  ── Error ('test-company.R:79:3'): it should get cash dividends for multiple companies ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(seq_len(nrow(codes)), rxx)`: i In index: 1.
  Caused by error in `parse_con()`:
  ! parse error: premature EOF
                                         
                       (right here) ------^
  Backtrace:
       ▆
    1. ├─rb3::company_cash_dividends_get(c("PDGR", "PETR")) at test-company.R:79:2
    2. │ └─rb3:::.company_mget(...)
    3. │   └─purrr::map(seq_len(nrow(codes)), rxx)
    4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─rb3 (local) .f(.x[[i]], ...)
    9. │         └─rb3:::.company_supplement_get(...)
   10. │           └─rb3::read_marketdata(f, template, do_cache = do_cache)
   11. │             └─template$read_file(filename, parse_fields)
   12. │               └─rb3 (local) res(x, ...)
   13. │                 └─jsonlite::fromJSON(filename)
   14. │                   └─jsonlite:::parse_and_simplify(...)
   15. │                     └─jsonlite:::parseJSON(txt, bigint_as_char)
   16. │                       └─jsonlite:::parse_con(txt, bigint_as_char)
   17. └─base::.handleSimpleError(...)
   18.   └─purrr (local) h(simpleError(msg, call))
   19.     └─cli::cli_abort(...)
   20.       └─rlang::abort(...)
  ── Error ('test-company.R:86:3'): it should get subscriptions for multiple companies ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(seq_len(nrow(codes)), rxx)`: i In index: 1.
  Caused by error in `parse_con()`:
  ! parse error: premature EOF
                                         
                       (right here) ------^
  Backtrace:
       ▆
    1. ├─rb3::company_subscriptions_get(c("PDGR", "INEP")) at test-company.R:86:2
    2. │ └─rb3:::.company_mget(...)
    3. │   └─purrr::map(seq_len(nrow(codes)), rxx)
    4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    5. │       ├─purrr:::with_indexed_errors(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       ├─purrr:::call_with_cleanup(...)
    8. │       └─rb3 (local) .f(.x[[i]], ...)
    9. │         └─rb3:::.company_supplement_get(...)
   10. │           └─rb3::read_marketdata(f, template, do_cache = do_cache)
   11. │             └─template$read_file(filename, parse_fields)
   12. │               └─rb3 (local) res(x, ...)
   13. │                 └─jsonlite::fromJSON(filename)
   14. │                   └─jsonlite:::parse_and_simplify(...)
   15. │                     └─jsonlite:::parseJSON(txt, bigint_as_char)
   16. │                       └─jsonlite:::parse_con(txt, bigint_as_char)
   17. └─base::.handleSimpleError(...)
   18.   └─purrr (local) h(simpleError(msg, call))
   19.     └─cli::cli_abort(...)
   20.       └─rlang::abort(...)
  
  [ FAIL 8 | WARN 0 | SKIP 10 | PASS 153 ]
  Error: Test failures
  Execution halted