Running ‘test-all.R’ [18s/85s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > 
  > library(testthat)
  > 
  > test_check("rclimateca")
  Loading required package: rclimateca
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   8%
    |                                                                            
    |============                                                          |  17%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |=============================                                         |  42%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |=========================================                             |  58%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |==========================================================            |  83%
    |                                                                            
    |================================================================      |  92%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  ── 1. Error: restquery returns a length 1 character vector (@test-restquery.R#4)
  Unable to connect to https://httpbin.org/get?arg1=value1&arg2=value2: 
    Timeout was reached: Connection timed out after 10001 milliseconds
  1: restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", arg2 = "value2", 
         .encoding = "UTF-8") at testthat/test-restquery.R:4
  2: stop("Unable to connect to ", url_string, ": ", as.character(connect))
  
  ── 2. Error: messaging is supressed upon request (@test-restquery.R#20)  ───────
  Unable to connect to https://httpbin.org/get?arg1=value1&arg2=value2: 
    Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_message(restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", 
         arg2 = "value2", .encoding = "UTF-8", .quiet = FALSE), "Retreiving information from") at testthat/test-restquery.R:20
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", arg2 = "value2", 
         .encoding = "UTF-8", .quiet = FALSE)
  7: stop("Unable to connect to ", url_string, ": ", as.character(connect))
  
  ── 3. Error: the parser is used when present (@test-restquery.R#35)  ───────────
  Unable to connect to https://httpbin.org/get?arg1=value1&arg2=value2: 
    Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_is(restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", arg2 = "value2", 
         .encoding = "UTF-8", .parser = jsonlite::fromJSON), "list") at testthat/test-restquery.R:35
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", arg2 = "value2", 
         .encoding = "UTF-8", .parser = jsonlite::fromJSON)
  5: stop("Unable to connect to ", url_string, ": ", as.character(connect))
  
  ── 4. Error: the cache is used when present (@test-restquery.R#49)  ────────────
  Unable to connect to https://httpbin.org/get?arg1=value1&arg2=value2: 
    Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_message(restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", 
         arg2 = "value2", .encoding = "UTF-8", .quiet = FALSE, .cache = temp_cache), "Retreiving information from") at testthat/test-restquery.R:49
  2: quasi_capture(enquo(object), capture_messages, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, message = function(condition) {
         out$push(condition)
         invokeRestart("muffleMessage")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: restquery(.endpoint = "https://httpbin.org/get", arg1 = "value1", arg2 = "value2", 
         .encoding = "UTF-8", .quiet = FALSE, .cache = temp_cache)
  7: stop("Unable to connect to ", url_string, ": ", as.character(connect))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 179 SKIPPED: 0 FAILED: 4
  1. Error: restquery returns a length 1 character vector (@test-restquery.R#4) 
  2. Error: messaging is supressed upon request (@test-restquery.R#20) 
  3. Error: the parser is used when present (@test-restquery.R#35) 
  4. Error: the cache is used when present (@test-restquery.R#49) 
  
  Error: testthat unit tests failed
  Execution halted