Running 'testthat.R' [2s/184s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(fmpcloudr)
  > 
  > test_check("fmpcloudr")
  == Skipped tests ===============================================================
  * On CRAN (12)
  
  == Failed tests ================================================================
  -- Error (test-secDetails.R:89:3): Testsec details with DEMO -------------------
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Backtrace:
       x
    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.           \-jsonlite::fromJSON(jsonrst)
   14.             \-jsonlite:::parse_and_simplify(...)
   15.               \-jsonlite:::parseJSON(txt, bigint_as_char)
   16.                 \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error (test-securityMetrics.R:89:3): Test securityMetrics with demo ---------
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Backtrace:
       x
    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.           \-jsonlite::fromJSON(jsonrst)
   14.             \-jsonlite:::parse_and_simplify(...)
   15.               \-jsonlite:::parseJSON(txt, bigint_as_char)
   16.                 \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error (test-securityMetrics.R:229:3): Technical Indicators on CRAN ----------
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>504 Gatewa
                       (right here) ------^
  
  Backtrace:
       x
    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.           \-jsonlite::fromJSON(jsonrst)
    9.             \-jsonlite:::parse_and_simplify(...)
   10.               \-jsonlite:::parseJSON(txt, bigint_as_char)
   11.                 \-jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 3 | WARN 0 | SKIP 12 | PASS 4 ]
  Error: Test failures
  Execution halted