Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [3s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(KoboconnectR)
  Extract Kobotools data to R
  > 
  > test_check("KoboconnectR")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 1 | WARN 0 | SKIP 10 | PASS 27 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-get_kobo_token.R:28:3', 'test-kobo_df_download.R:2:3',
    'test-kobo_export_create.R:4:3', 'test-kobo_export_create.R:15:3',
    'test-kobo_export_create.R:25:3', 'test-kobo_export_create.R:36:3',
    'test-kobo_exports.R:2:3', 'test-kobo_xls_dl.R:2:3',
    'test-kobotools_api.R:31:3', 'test-kobotools_kpi_data.R:38:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-kobotools_api.R:27:3'): df is downloaded when simplification applied ──
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-kobotools_api.R:27:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::is.data.frame(...)
   5. └─KoboconnectR::kobotools_api(...)
   6.   └─jsonlite::fromJSON(...)
   7.     └─jsonlite:::parse_and_simplify(...)
   8.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   9.         └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 1 | WARN 0 | SKIP 10 | PASS 27 ]
  Error: Test failures
  Execution halted