Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fmpcloudr)
  > 
  > test_check("fmpcloudr")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (11)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-pricing.R:162:3): Test pricing with Demo ────────────────────────
  Error: Failed to connect to fmpcloud.io port 443: Connection refused
  Backtrace:
       █
    1. ├─testthat::expect_warning(fmpc_price_history(symwErr)) test-pricing.R:162:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─fmpcloudr::fmpc_price_history(symwErr)
    7.   ├─dplyr::bind_rows(...)
    8.   │ └─rlang::list2(...)
    9.   └─base::lapply(...)
   10.     └─fmpcloudr:::FUN(X[[i]], ...)
   11.       └─fmpcloudr:::hlp_symbolHistory(x, prc_url, startDate, endDate)
   12.         └─fmpcloudr::fmpc_get_url(URL)
   13.           └─httr::GET(...)
   14.             └─httr:::request_perform(req, hu$handle$handle)
   15.               ├─httr:::request_fetch(req$output, req$url, handle)
   16.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   17.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-secDetails.R:89:3): Testsec details with DEMO ───────────────────
  Error: Failed to connect to fmpcloud.io port 443: Connection refused
  Backtrace:
       █
    1. ├─testthat::expect_warning(fmpc_security_ratings(symwErr)) test-secDetails.R:89:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─fmpcloudr::fmpc_security_ratings(symwErr)
    7.   └─fmpcloudr:::hlp_bindURLs(...)
    8.     ├─dplyr::bind_rows(...)
    9.     │ └─rlang::list2(...)
   10.     └─base::lapply(...)
   11.       └─fmpcloudr:::FUN(X[[i]], ...)
   12.         └─fmpcloudr::fmpc_get_url(URL)
   13.           └─httr::GET(...)
   14.             └─httr:::request_perform(req, hu$handle$handle)
   15.               ├─httr:::request_fetch(req$output, req$url, handle)
   16.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   17.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-securityMetrics.R:89:3): Test securityMetrics with demo ─────────
  Error: Failed to connect to fmpcloud.io port 443: Connection refused
  Backtrace:
       █
    1. ├─testthat::expect_warning(fmpc_security_splits(symwErr, startDate = "2014-01-01")) test-securityMetrics.R:89:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─fmpcloudr::fmpc_security_splits(symwErr, startDate = "2014-01-01")
    7.   ├─dplyr::bind_rows(...)
    8.   │ └─rlang::list2(...)
    9.   └─base::lapply(...)
   10.     └─fmpcloudr:::FUN(X[[i]], ...)
   11.       └─fmpcloudr:::hlp_symbolHistory(x, splt_url, startDate, endDate)
   12.         └─fmpcloudr::fmpc_get_url(URL)
   13.           └─httr::GET(...)
   14.             └─httr:::request_perform(req, hu$handle$handle)
   15.               ├─httr:::request_fetch(req$output, req$url, handle)
   16.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   17.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-securityMetrics.R:229:3): Technical Indicators on CRAN ──────────
  Error: Failed to connect to fmpcloud.io port 443: Connection refused
  Backtrace:
       █
    1. └─fmpcloudr::fmpc_security_tech_indic(...) test-securityMetrics.R:229:2
    2.   └─fmpcloudr:::hlp_bindURLs(...)
    3.     ├─dplyr::bind_rows(...)
    4.     │ └─rlang::list2(...)
    5.     └─base::lapply(...)
    6.       └─fmpcloudr:::FUN(X[[i]], ...)
    7.         └─fmpcloudr::fmpc_get_url(URL)
    8.           └─httr::GET(...)
    9.             └─httr:::request_perform(req, hu$handle$handle)
   10.               ├─httr:::request_fetch(req$output, req$url, handle)
   11.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   12.                 └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 4 | WARN 0 | SKIP 11 | PASS 4 ]
  Error: Test failures
  Execution halted