Running ‘testthat.R’ [10s/463s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(queryup)
  > 
  > test_check("queryup")
  Query not supported
  Query not supported
  Query not supported
  Query not supported
  1 invalid values were found (CON_P22682) and removed from the query.
  Field 'accession_id' with no valid entries has been removed from query.
   
  
  300 invalid values were found (CON_A2APB8, CON_A2AT37, CON_D2J0Y4, CON_E9PV87, CON_A2ALV5, CON_A2BH40, CON_E9Q5G7, CON_B2RQC6, CON_B2RRD7, CON_A1E960, ...) and removed from the query.
  Field 'accession_id' with no valid entries has been removed from query.
  Field 'accession_id' with no valid entries has been removed from query.
  600 invalid values were found (CON_A2ASZ8, CON_E9Q4Z2, CON_B2RXS4, CON_A2RT67, CON_B2RY50, CON_A2AWT3, CON_B2RPY5, CON_A2AU37, CON_A2ASQ1, CON_A6H6A9, ...) and removed from the query.
  Field 'accession' with no valid entries has been removed from query.
  Field 'accession_id' with no valid entries has been removed from query.
  3 invalid values were found (REV_P47941, CON_P22682, P226) and removed from the query.
  Querying the UniProt database...
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |======================================================================| 100%
  Querying the UniProt database...
  
    |                                                                            
    |                                                                      |   0%Querying the UniProt database...
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  Querying the UniProt database...
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  Querying the UniProt database...
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |=======================                                               |  33%
    |                                                                            
    |===============================================                       |  67%
    |                                                                            
    |======================================================================| 100%
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 27 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_uniprot_data.R:94'): Long queries work ─────────────────────
  <GenericCurlError/error/condition>
  Error in `function (type, msg, asError = TRUE) 
  {
      if (!is.character(type)) {
          i = match(type, CURLcodeValues)
          typeName = if (is.na(i)) 
              character()
          else names(CURLcodeValues)[i]
      }
      typeName = gsub("^CURLE_", "", typeName)
      fun = (if (asError) 
          stop
      else warning)
      fun(structure(list(message = msg, call = sys.call()), class = c(typeName, 
          "GenericCurlError", "error", "condition")))
  }(92L, "HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)", 
      TRUE)`: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-get_uniprot_data.R:94:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::setequal(get_uniprot_data(query)$content$Entry, ids)
    5. │ └─base::as.vector(x)
    6. ├─queryup::get_uniprot_data(query)
    7. │ ├─jsonlite::fromJSON(RCurl::getURL(full_url))
    8. │ └─RCurl::getURL(full_url)
    9. │   └─RCurl::curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
   10. └─RCurl (local) `<fn>`(...)
  ── Error ('test-query_uniprot.R:13'): Long queries with no columns defined work ──
  Error: lexical error: invalid char in json text.
                                         <html>  <head><title>502 Bad Ga
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─queryup::query_uniprot(query, columns = NULL) at test-query_uniprot.R:13:2
   2.   └─queryup::get_uniprot_data(...)
   3.     └─jsonlite::fromJSON(RCurl::getURL(full_url))
   4.       └─jsonlite:::parse_and_simplify(...)
   5.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   6.           └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 27 ]
  Error: Test failures
  Execution halted