Running ‘testthat.R’ [0m/11m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rdracor)
  > 
  > test_check("rdracor")
  DraCor API URL:  https://dracor.org/api/v1 
   name: DraCor API v1
  version: 1.0.2
  status: stable
  existdb: 6.2.0
  base: https://dracor.org/api/v1[ FAIL 9 | WARN 2 | SKIP 0 | PASS 32 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dracor.R:2:3'): Cal corpus is S3 class 'dracor' ────────────────
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(get_dracor("cal"), "dracor") at test-dracor.R:2:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rdracor::get_dracor("cal")
    5.   └─rdracor:::get_available_corpus_names()
    6.     └─rdracor::get_dracor_meta()
    7.       ├─rdracor:::dracor_meta(...)
    8.       │ └─utils::type.convert(...)
    9.       └─rdracor::dracor_api(...)
   10.         └─rdracor:::dracor_error(resp)
  ── Error ('test-dracor.R:11:3'): several corpora are downloaded via get_dracor() if character vector
            is provided ──
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(get_dracor(c("tat", "span")), "tbl_df") at test-dracor.R:11:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rdracor::get_dracor(c("tat", "span"))
    5.   └─rdracor:::get_available_corpus_names()
    6.     └─rdracor::get_dracor_meta()
    7.       ├─rdracor:::dracor_meta(...)
    8.       │ └─utils::type.convert(...)
    9.       └─rdracor::dracor_api(...)
   10.         └─rdracor:::dracor_error(resp)
  ── Error ('test-dracor.R:25:5'): summary() work for 'dracor' object if there is no info on some years ──
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-dracor.R:25:5
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nchar(capture.output(summary(get_dracor("tat"))))
    5. ├─utils::capture.output(summary(get_dracor("tat")))
    6. │ └─base::withVisible(...elt(i))
    7. ├─base::summary(get_dracor("tat"))
    8. └─rdracor::get_dracor("tat")
    9.   └─rdracor:::get_available_corpus_names()
   10.     └─rdracor::get_dracor_meta()
   11.       ├─rdracor:::dracor_meta(...)
   12.       │ └─utils::type.convert(...)
   13.       └─rdracor::dracor_api(...)
   14.         └─rdracor:::dracor_error(resp)
  ── Error ('test-dracor.R:35:5'): Written year with format 'YYYY/YYYY' is processed as integer in column
    yearWrittenFinish ──
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
       ▆
    1. ├─testthat::expect_is(get_dracor("rus")$yearWrittenFinish, "integer") at test-dracor.R:35:5
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─rdracor::get_dracor("rus")
    5.   └─rdracor:::get_available_corpus_names()
    6.     └─rdracor::get_dracor_meta()
    7.       ├─rdracor:::dracor_meta(...)
    8.       │ └─utils::type.convert(...)
    9.       └─rdracor::dracor_api(...)
   10.         └─rdracor:::dracor_error(resp)
  ── Error ('test-dracor_meta.R:2:3'): get_dracor_meta() returns dracor_meta object ──
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(get_dracor_meta(), "dracor_meta") at test-dracor_meta.R:2:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─rdracor::get_dracor_meta()
   5.   ├─rdracor:::dracor_meta(...)
   6.   │ └─utils::type.convert(...)
   7.   └─rdracor::dracor_api(...)
   8.     └─rdracor:::dracor_error(resp)
  ── Error ('test-dracor_meta.R:14:3'): summary for dracor_meta object is visible ──
  Error in `dracor_error(resp)`: Status code - 504: Internal Dracor server problem
  Backtrace:
      ▆
   1. └─rdracor::get_dracor_meta() at test-dracor_meta.R:14:3
   2.   ├─rdracor:::dracor_meta(...)
   3.   │ └─utils::type.convert(...)
   4.   └─rdracor::dracor_api(...)
   5.     └─rdracor:::dracor_error(resp)
  ── Error ('test-net.R:30:3'): label_cooccur_igraph() return come NA for big network ──
  Error in `dracor_error(resp)`: Status code - 404: Wrong Dracor API request - data were not found
  Backtrace:
      ▆
   1. └─rdracor::get_net_cooccur_igraph("henry-iv-part-i", "shake") at test-net.R:30:3
   2.   └─rdracor::get_play_characters(play = play, corpus = corpus, as_tibble = FALSE)
   3.     └─rdracor::dracor_api(...)
   4.       └─rdracor:::dracor_error(resp)
  ── Error ('test-net.R:37:5'): label_cooccur_igraph() do not return NA after max_graph_size adjustment ──
  Error in `dracor_error(resp)`: Status code - 404: Wrong Dracor API request - data were not found
  Backtrace:
      ▆
   1. └─rdracor::get_net_cooccur_igraph("henry-iv-part-i", "shake") at test-net.R:37:5
   2.   └─rdracor::get_play_characters(play = play, corpus = corpus, as_tibble = FALSE)
   3.     └─rdracor::dracor_api(...)
   4.       └─rdracor:::dracor_error(resp)
  ── Error ('test-net.R:43:3'): summary.cooccur_igraph() prints appropriate number of rows ──
  Error in `dracor_error(resp)`: Status code - 404: Wrong Dracor API request - data were not found
  Backtrace:
      ▆
   1. └─rdracor::get_net_cooccur_igraph("henry-iv-part-i", "shake") at test-net.R:43:3
   2.   └─rdracor::get_play_characters(play = play, corpus = corpus, as_tibble = FALSE)
   3.     └─rdracor::dracor_api(...)
   4.       └─rdracor:::dracor_error(resp)
  
  [ FAIL 9 | WARN 2 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted