Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(polmineR)
  
  Attaching package: 'polmineR'
  
  The following object is masked from 'package:testthat':
  
      context
  
  > use("polmineR")
  ... activating corpus: GERMAPARLMINI (version: 0.0.1 | build date: 2019-02-23)
  ... activating corpus: REUTERS
  > 
  > test_check("polmineR")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  • empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_as.DocumentTermMatrix.R:16:5): Generate Term-Document-Matrix from corpus using as.TermDocumentMatrix ──
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(sum(dtm[, "is"]), count("REUTERS", "is")[["count"]]) test_as.DocumentTermMatrix.R:16:4
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─polmineR::count("REUTERS", "is")
    5. └─polmineR::count("REUTERS", "is")
    6.   └─polmineR:::.local(.Object, ...)
    7.     ├─polmineR::count(...)
    8.     └─polmineR::count(...)
    9.       └─polmineR:::.local(.Object, ...)
   10.         └─polmineR::as.corpusEnc(query, corpusEnc = encoding(.Object))
   11.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.data.table.R:34:5): as.data.table ────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("REUTERS") %>% subset(grep("saudi-arabia", places)) test_as.data.table.R:34:4
   2. ├─base::subset(., grep("saudi-arabia", places))
   3. └─polmineR::subset(., grep("saudi-arabia", places))
   4.   └─polmineR:::.local(x, ...)
   5.     └─polmineR:::.recode_call(...)
   6.       └─polmineR:::.fn(x)
   7.         └─base::lapply(x, .fn)
   8.           └─polmineR:::FUN(X[[i]], ...)
   9.             └─base::iconv(x = x, from = from, to = to)
  ── Error (test_as.markdown.R:9:5): as.markdown ─────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", id = "127", regex = TRUE) test_as.markdown.R:9:4
   2. └─polmineR::partition("REUTERS", id = "127", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.markdown.R:37:5): plpr_partition ─────────────────────────────
  Error: error in evaluating the argument '.Object' in selecting a method for function 'as.speeches': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_as.markdown.R:37:4
    2. ├─polmineR::as.speeches(., s_attribute_name = "speaker", gap = 100)
    3. ├─polmineR::partition(...)
    4. ├─polmineR::partition(...)
    5. │ └─polmineR:::.local(.Object, ...)
    6. │   └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
    7. │     └─polmineR:::FUN(X[[i]], ...)
    8. │       └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
    9. │         └─base::iconv(x, from = from, to = corpusEnc)
   10. └─base::.handleSimpleError(...)
   11.   └─base:::h(simpleError(msg, call))
  ── Error (test_as.markdown.R:64:5): read ───────────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─base::subset(corpus("REUTERS"), places = "argentina") test_as.markdown.R:64:4
   2. └─polmineR::subset(corpus("REUTERS"), places = "argentina")
   3.   └─polmineR:::.local(x, ...)
   4.     └─base::lapply(s_attr_dots, function(v) as.corpusEnc(v, corpusEnc = x@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(v, corpusEnc = x@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.regions.R:8:5): coerce to regions ────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", speaker = "Angela Dorothea Merkel") test_as.regions.R:8:4
   2. └─polmineR::partition("GERMAPARLMINI", speaker = "Angela Dorothea Merkel")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.speeches.R:8:5): as.speeches ─────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = ".*", regex = TRUE) test_as.speeches.R:8:4
   2. └─polmineR::partition("GERMAPARLMINI", date = ".*", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.speeches.R:29:5): tdm for as.speeches ────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = ".*", regex = TRUE) test_as.speeches.R:29:4
   2. └─polmineR::partition("GERMAPARLMINI", date = ".*", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_as.speeches.R:48:5): tdm for as.speeches, but partition/subcorpus ──
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", regex = TRUE) test_as.speeches.R:48:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_chisquare.R:8:5): check chisquare computation ───────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition(...) test_chisquare.R:8:4
   2. └─polmineR::partition(...)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_context.R:9:5): context-method for corpus ───────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::context("REUTERS", query = "oil", pAttribute = "word") test_context.R:9:4
    2. └─polmineR::context("REUTERS", query = "oil", pAttribute = "word")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::context(...)
    5.     └─polmineR::context(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::context(...)
    8.         └─polmineR::context(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─methods::callNextMethod()
   11.             └─polmineR:::.nextMethod(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─polmineR::cpos(...)
   14.                 └─polmineR::cpos(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     ├─methods::callNextMethod(...)
   17.                     │ └─base::eval(call, callEnv)
   18.                     │   └─base::eval(call, callEnv)
   19.                     └─polmineR:::.nextMethod(...)
   20.                       └─polmineR:::.local(.Object, ...)
   21.                         ├─polmineR::cpos(...)
   22.                         └─polmineR::cpos(...)
   23.                           └─polmineR:::.local(.Object, ...)
   24.                             └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   25.                               └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_context.R:28:5): context-method for partition ───────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE) test_context.R:28:4
   2. └─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_cooccurrences.R:8:5): cooccurrences-method for corpus ───────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::cooccurrences("REUTERS", query = "oil", pAttribute = "word") test_cooccurrences.R:8:4
    2. └─polmineR::cooccurrences("REUTERS", query = "oil", pAttribute = "word")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::cooccurrences(...)
    5.     └─polmineR::cooccurrences(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::context(...)
    8.         └─polmineR::context(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::context(...)
   11.             └─polmineR::context(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─methods::callNextMethod()
   14.                 └─polmineR:::.nextMethod(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     ├─polmineR::cpos(...)
   17.                     └─polmineR::cpos(...)
   18.                       └─polmineR:::.local(.Object, ...)
   19.                         ├─methods::callNextMethod(...)
   20.                         │ └─base::eval(call, callEnv)
   21.                         │   └─base::eval(call, callEnv)
   22.                         └─polmineR:::.nextMethod(...)
   23.                           └─polmineR:::.local(.Object, ...)
   24.                             ├─polmineR::cpos(...)
   25.                             └─polmineR::cpos(...)
   26.                               └─polmineR:::.local(.Object, ...)
   27.                                 └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   28.                                   └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_cooccurrences.R:29:5): cooccurrences-method for partition ───────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE) test_cooccurrences.R:29:4
   2. └─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_cooccurrences.R:53:5): Check log-likelihood formula ─────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::cooccurrences("GERMAPARLMINI", query = "Integration") test_cooccurrences.R:53:4
    2. └─polmineR::cooccurrences("GERMAPARLMINI", query = "Integration")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::cooccurrences(...)
    5.     └─polmineR::cooccurrences(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::context(...)
    8.         └─polmineR::context(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::context(...)
   11.             └─polmineR::context(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─methods::callNextMethod()
   14.                 └─polmineR:::.nextMethod(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     ├─polmineR::cpos(...)
   17.                     └─polmineR::cpos(...)
   18.                       └─polmineR:::.local(.Object, ...)
   19.                         ├─methods::callNextMethod(...)
   20.                         │ └─base::eval(call, callEnv)
   21.                         │   └─base::eval(call, callEnv)
   22.                         └─polmineR:::.nextMethod(...)
   23.                           └─polmineR:::.local(.Object, ...)
   24.                             ├─polmineR::cpos(...)
   25.                             └─polmineR::cpos(...)
   26.                               └─polmineR:::.local(.Object, ...)
   27.                                 └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   28.                                   └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_count.R:18:1): (code run outside of `test_that()`) ──────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", list(id = ".*"), regex = TRUE) test_count.R:18:0
   2. └─polmineR::partition("REUTERS", list(id = ".*"), regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_cpos.R:9:5): cpos-method for corpus ─────────────────────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'nrow': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(nrow(cpos(r, query = "oil")), 78L) test_cpos.R:9:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nrow(cpos(r, query = "oil"))
    5. ├─polmineR::cpos(r, query = "oil")
    6. ├─polmineR::cpos(r, query = "oil")
    7. │ └─polmineR:::.local(.Object, ...)
    8. │   └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
    9. │     └─base::iconv(x, from = from, to = corpusEnc)
   10. └─base::.handleSimpleError(...)
   11.   └─base:::h(simpleError(msg, call))
  ── Error (test_cpos.R:19:5): cpos-method for corpus provided by character ID ───
  Error: error in evaluating the argument 'x' in selecting a method for function 'nrow': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test_cpos.R:19:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nrow(cpos("REUTERS", query = "oil"))
    5. ├─polmineR::cpos("REUTERS", query = "oil")
    6. ├─polmineR::cpos("REUTERS", query = "oil")
    7. │ └─polmineR:::.local(.Object, ...)
    8. │   ├─polmineR::cpos(...)
    9. │   └─polmineR::cpos(...)
   10. │     └─polmineR:::.local(.Object, ...)
   11. │       └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   12. │         └─base::iconv(x, from = from, to = corpusEnc)
   13. └─base::.handleSimpleError(...)
   14.   └─base:::h(simpleError(msg, call))
  ── Error (test_cpos.R:29:5): cpos-method for partition ─────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE) test_cpos.R:29:4
   2. └─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_cpos.R:40:5): cpos-method for subcorpus ─────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("REUTERS") %>% subset(grepl("saudi-arabia", places)) test_cpos.R:40:4
   2. ├─base::subset(., grepl("saudi-arabia", places))
   3. └─polmineR::subset(., grepl("saudi-arabia", places))
   4.   └─polmineR:::.local(x, ...)
   5.     └─polmineR:::.recode_call(...)
   6.       └─polmineR:::.fn(x)
   7.         └─base::lapply(x, .fn)
   8.           └─polmineR:::FUN(X[[i]], ...)
   9.             └─base::iconv(x = x, from = from, to = to)
  ── Error (test_decode.R:9:5): decode entire corpus ─────────────────────────────
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::decode("GERMAPARLMINI", to = "data.table") test_decode.R:9:4
    2. └─polmineR::decode("GERMAPARLMINI", to = "data.table")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::decode(...)
    5.     └─polmineR::decode(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         └─base::lapply(...)
    8.           └─polmineR:::FUN(X[[i]], ...)
    9.             ├─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
   10.             └─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
   11.               └─polmineR:::.local(.Object, ...)
   12.                 ├─polmineR::get_token_stream(...)
   13.                 └─polmineR::get_token_stream(...)
   14.                   └─polmineR:::.local(.Object, ...)
   15.                     ├─polmineR::decode(...)
   16.                     └─polmineR::decode(...)
   17.                       └─polmineR:::.local(.Object, ...)
   18.                         └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_decode.R:20:5): decode corpus selectively ───────────────────────
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_decode.R:20:4
    2. ├─polmineR::decode(...)
    3. └─polmineR::decode(...)
    4.   └─polmineR:::.local(.Object, ...)
    5.     └─base::lapply(...)
    6.       └─polmineR:::FUN(X[[i]], ...)
    7.         ├─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
    8.         └─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::get_token_stream(...)
   11.             └─polmineR::get_token_stream(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─polmineR::decode(...)
   14.                 └─polmineR::decode(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_decode.R:32:5): decode corpus without s-attributes ──────────────
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_decode.R:32:4
    2. ├─polmineR::decode(...)
    3. └─polmineR::decode(...)
    4.   └─polmineR:::.local(.Object, ...)
    5.     └─base::lapply(...)
    6.       └─polmineR:::FUN(X[[i]], ...)
    7.         ├─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
    8.         └─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::get_token_stream(...)
   11.             └─polmineR::get_token_stream(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─polmineR::decode(...)
   14.                 └─polmineR::decode(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_decode.R:44:5): decode subcorpus without any s-attributes ───────
  Error: error in evaluating the argument '.Object' in selecting a method for function 'decode': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_decode.R:44:4
    2. ├─polmineR::decode(...)
    3. ├─base::subset(., party == "SPD")
    4. ├─polmineR::subset(., party == "SPD")
    5. │ └─polmineR:::.local(x, ...)
    6. │   └─polmineR:::.recode_call(...)
    7. │     └─polmineR:::.fn(x)
    8. │       └─base::lapply(x, .fn)
    9. │         └─polmineR:::FUN(X[[i]], ...)
   10. │           └─base::iconv(x = x, from = from, to = to)
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  ── Error (test_decode.R:58:5): decode token ids ────────────────────────────────
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::decode(ids, corpus = gparl, p_attribute = "word", boost = FALSE) test_decode.R:58:4
   2. └─polmineR::decode(ids, corpus = gparl, p_attribute = "word", boost = FALSE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_dispersion.R:8:5): dispersion ───────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::dispersion(...) test_dispersion.R:8:4
    2. └─polmineR::dispersion(...)
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::dispersion(...)
    5.     └─polmineR::dispersion(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::hits(...)
    8.         └─polmineR::hits(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             └─pbapply::pblapply(as.list(query), .fn, cl = mc)
   11.               └─base::lapply(X, FUN, ...)
   12.                 └─polmineR:::FUN(X[[i]], ...)
   13.                   ├─polmineR::cpos(...)
   14.                   └─polmineR::cpos(...)
   15.                     └─polmineR:::.local(.Object, ...)
   16.                       └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   17.                         └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_dispersion.R:33:5): dispersion using multiple queries ───────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::dispersion(...) test_dispersion.R:33:4
    2. └─polmineR::dispersion(...)
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::hits(...)
    5.     └─polmineR::hits(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         └─parallel::mclapply(as.list(query), .fn, mc.cores = mc)
    8.           └─base::lapply(X, FUN, ...)
    9.             └─polmineR:::FUN(X[[i]], ...)
   10.               ├─polmineR::cpos(...)
   11.               └─polmineR::cpos(...)
   12.                 └─polmineR:::.local(.Object, ...)
   13.                   └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   14.                     └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_enrich.R:9:5): enrich partition ─────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", speaker = "Gerda Hasselfeldt") test_enrich.R:9:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", speaker = "Gerda Hasselfeldt")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_features.R:8:5): features (comparing a partition with a partition) ──
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word") test_features.R:8:4
   2. └─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_features.R:21:5): features (comparing a partition with corpus) ──
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word") test_features.R:21:4
   2. └─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_features.R:34:5): features (comparing ngrams with ngrams) ───────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word") test_features.R:34:4
   2. └─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_features.R:51:5): features (comparing count with count) ─────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word") test_features.R:51:4
   2. └─polmineR::partition("REUTERS", places = "qatar", pAttribute = "word")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_get_template.R:13:5): get_template ──────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11") test_get_template.R:13:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_get_token_stream.R:8:5): get_token_stream()-method - decode entire corpus ──
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::get_token_stream("REUTERS", p_attribute = "word") test_get_token_stream.R:8:4
    2. └─polmineR::get_token_stream("REUTERS", p_attribute = "word")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::get_token_stream(...)
    5.     └─polmineR::get_token_stream(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::get_token_stream(...)
    8.         └─polmineR::get_token_stream(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::decode(...)
   11.             └─polmineR::decode(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_get_token_stream.R:31:5): get_token_stream()-method for numeric input object ──
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test_get_token_stream.R:31:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─polmineR::get_token_stream(0:9, corpus = "GERMAPARLMINI", pAttribute = "word")
    5. └─polmineR::get_token_stream(0:9, corpus = "GERMAPARLMINI", pAttribute = "word")
    6.   └─polmineR:::.local(.Object, ...)
    7.     ├─polmineR::decode(...)
    8.     └─polmineR::decode(...)
    9.       └─polmineR:::.local(.Object, ...)
   10.         └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_get_token_stream.R:85:5): get_token_stream()-method for numeric input object with collapse ──
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test_get_token_stream.R:85:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─polmineR::get_token_stream(...)
    5. └─polmineR::get_token_stream(...)
    6.   └─polmineR:::.local(.Object, ...)
    7.     ├─polmineR::decode(...)
    8.     └─polmineR::decode(...)
    9.       └─polmineR:::.local(.Object, ...)
   10.         └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_get_token_stream.R:98:5): get_token_stream()-method for matrix input ──
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::get_token_stream(...) test_get_token_stream.R:98:4
   2. └─polmineR::get_token_stream(...)
   3.   ├─polmineR::get_token_stream(cpos(.Object), ...)
   4.   └─polmineR::get_token_stream(cpos(.Object), ...)
   5.     └─polmineR:::.local(.Object, ...)
   6.       ├─polmineR::decode(...)
   7.       └─polmineR::decode(...)
   8.         └─polmineR:::.local(.Object, ...)
   9.           └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_get_token_stream.R:111:5): get_token_stream()-method - decode partition, subcorpus and subcorpus_bundle ──
  Error: error in evaluating the argument '.Object' in selecting a method for function 'get_token_stream': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─corpus("REUTERS") %>% subset(id == "127") %>% get_token_stream(p_attribute = "word") test_get_token_stream.R:111:4
    2. ├─polmineR::get_token_stream(., p_attribute = "word")
    3. ├─base::subset(., id == "127")
    4. ├─polmineR::subset(., id == "127")
    5. │ └─polmineR:::.local(x, ...)
    6. │   └─polmineR:::.recode_call(...)
    7. │     └─polmineR:::.fn(x)
    8. │       └─base::lapply(x, .fn)
    9. │         └─polmineR:::FUN(X[[i]], ...)
   10. │           └─base::iconv(x = x, from = from, to = to)
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  ── Error (test_get_token_stream.R:129:5):  ─────────────────────────────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'subset': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_get_token_stream.R:129:4
    2. ├─methods::as(., "String")
    3. │ └─methods:::.class1(object)
    4. ├─base::subset(., speaker == "Angela Dorothea Merkel")
    5. ├─base::subset(., date == "2009-11-10")
    6. ├─polmineR::subset(., date == "2009-11-10")
    7. │ └─polmineR:::.local(x, ...)
    8. │   └─polmineR:::.recode_call(...)
    9. │     └─polmineR:::.fn(x)
   10. │       └─base::lapply(x, .fn)
   11. │         └─polmineR:::FUN(X[[i]], ...)
   12. │           └─base::iconv(x = x, from = from, to = to)
   13. └─base::.handleSimpleError(...)
   14.   └─base:::h(simpleError(msg, call))
  ── Error (test_get_token_stream.R:143:5): Check workflow to filter subcorpus_bundle ──
  Error: error in evaluating the argument '.Object' in selecting a method for function 'as.phrases': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("GERMAPARLMINI") %>% cpos(query = queries) %>% as.phrases(corpus = "GERMAPARLMINI") test_get_token_stream.R:143:4
   2. ├─polmineR::as.phrases(., corpus = "GERMAPARLMINI")
   3. ├─polmineR::cpos(., query = queries)
   4. ├─polmineR::cpos(., query = queries)
   5. │ └─polmineR:::.local(.Object, ...)
   6. │   └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   7. │     └─base::iconv(x, from = from, to = corpusEnc)
   8. └─base::.handleSimpleError(...)
   9.   └─base:::h(simpleError(msg, call))
  ── Error (test_get_type.R:9:5): get_type_specialized ───────────────────────────
  Error: error in evaluating the argument '.Object' in selecting a method for function 'get_type': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test_get_type.R:9:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─polmineR::get_type(partition("GERMAPARLMINI", date = "2009-10-28"))
    5. ├─polmineR::partition("GERMAPARLMINI", date = "2009-10-28")
    6. ├─polmineR::partition("GERMAPARLMINI", date = "2009-10-28")
    7. │ └─polmineR:::.local(.Object, ...)
    8. │   └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
    9. │     └─polmineR:::FUN(X[[i]], ...)
   10. │       └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   11. │         └─base::iconv(x, from = from, to = corpusEnc)
   12. └─base::.handleSimpleError(...)
   13.   └─base:::h(simpleError(msg, call))
  ── Error (test_get_type.R:20:5): get_type_default ──────────────────────────────
  Error: error in evaluating the argument '.Object' in selecting a method for function 'get_type': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test_get_type.R:20:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─polmineR::get_type(partition("REUTERS", places = "kuwait"))
    5. ├─polmineR::partition("REUTERS", places = "kuwait")
    6. ├─polmineR::partition("REUTERS", places = "kuwait")
    7. │ └─polmineR:::.local(.Object, ...)
    8. │   └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
    9. │     └─polmineR:::FUN(X[[i]], ...)
   10. │       └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   11. │         └─base::iconv(x, from = from, to = corpusEnc)
   12. └─base::.handleSimpleError(...)
   13.   └─base:::h(simpleError(msg, call))
  ── Error (test_hits.R:8:5): hits method ────────────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::hits("REUTERS", query = "oil") test_hits.R:8:4
    2. └─polmineR::hits("REUTERS", query = "oil")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::hits(...)
    5.     └─polmineR::hits(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         └─pbapply::pblapply(as.list(query), .fn, cl = mc)
    8.           └─base::lapply(X, FUN, ...)
    9.             └─polmineR:::FUN(X[[i]], ...)
   10.               ├─polmineR::cpos(...)
   11.               └─polmineR::cpos(...)
   12.                 └─polmineR:::.local(.Object, ...)
   13.                   └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   14.                     └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:8:5): kwic-method for corpus ─────────────────────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'nrow': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test_kwic.R:8:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::nrow(kwic("REUTERS", query = "oil", pAttribute = "word")@stat)
    5. ├─polmineR::kwic("REUTERS", query = "oil", pAttribute = "word")
    6. ├─polmineR::kwic("REUTERS", query = "oil", pAttribute = "word")
    7. │ └─polmineR:::.local(.Object, ...)
    8. │   ├─polmineR::kwic(...)
    9. │   └─polmineR::kwic(...)
   10. │     └─polmineR:::.local(.Object, ...)
   11. │       ├─polmineR::cpos(...)
   12. │       └─polmineR::cpos(...)
   13. │         └─polmineR:::.local(.Object, ...)
   14. │           └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   15. │             └─base::iconv(x, from = from, to = corpusEnc)
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test_kwic.R:33:5): kwic-method for partition ─────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE) test_kwic.R:33:4
   2. └─polmineR::partition("REUTERS", places = "saudi-arabia", regex = TRUE)
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:60:5): as.character-method for kwic objects ──────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("REUTERS") %>% kwic(query = "oil") test_kwic.R:60:4
   2. ├─polmineR::kwic(., query = "oil")
   3. └─polmineR::kwic(., query = "oil")
   4.   └─polmineR:::.local(.Object, ...)
   5.     ├─polmineR::cpos(...)
   6.     └─polmineR::cpos(...)
   7.       └─polmineR:::.local(.Object, ...)
   8.         └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   9.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:78:5): indexing kwic objects ─────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("REUTERS") %>% kwic(query = "oil") test_kwic.R:78:4
   2. ├─polmineR::kwic(., query = "oil")
   3. └─polmineR::kwic(., query = "oil")
   4.   └─polmineR:::.local(.Object, ...)
   5.     ├─polmineR::cpos(...)
   6.     └─polmineR::cpos(...)
   7.       └─polmineR:::.local(.Object, ...)
   8.         └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   9.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:87:5): subsetting kwic objects ───────────────────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'subset': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_kwic.R:87:4
    2. ├─base::subset(., grepl("prices", right))
    3. ├─polmineR::kwic(., query = "oil")
    4. ├─polmineR::kwic(., query = "oil")
    5. │ └─polmineR:::.local(.Object, ...)
    6. │   ├─polmineR::cpos(...)
    7. │   └─polmineR::cpos(...)
    8. │     └─polmineR:::.local(.Object, ...)
    9. │       └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   10. │         └─base::iconv(x, from = from, to = corpusEnc)
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  ── Error (test_kwic.R:101:5): as.data.frame for kwic-method ────────────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'as.data.frame': error in evaluating the argument '.Object' in selecting a method for function 'enrich': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_kwic.R:101:4
    2. ├─base::as.data.frame(.)
    3. ├─polmineR::enrich(., s_attributes = c("date", "speaker", "party"))
    4. ├─polmineR::kwic(., query = "Integration")
    5. ├─polmineR::kwic(., query = "Integration")
    6. │ └─polmineR:::.local(.Object, ...)
    7. │   ├─polmineR::cpos(...)
    8. │   └─polmineR::cpos(...)
    9. │     └─polmineR:::.local(.Object, ...)
   10. │       └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   11. │         └─base::iconv(x, from = from, to = corpusEnc)
   12. ├─base::.handleSimpleError(...)
   13. │ └─base:::h(simpleError(msg, call))
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test_kwic.R:113:5): as.DocumentTermMatrix for kwic-class-object ──────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::kwic("REUTERS", query = "oil") test_kwic.R:113:4
    2. └─polmineR::kwic("REUTERS", query = "oil")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::kwic(...)
    5.     └─polmineR::kwic(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::cpos(...)
    8.         └─polmineR::cpos(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   11.               └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:125:5): kwic: NULL object if positivelist removes all matches ──
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─`%>%`(...) test_kwic.R:125:4
   2. ├─polmineR::kwic(., query = "Integration", cqp = FALSE, positivelist = "Messer")
   3. └─polmineR::kwic(., query = "Integration", cqp = FALSE, positivelist = "Messer")
   4.   └─polmineR:::.local(.Object, ...)
   5.     ├─polmineR::cpos(...)
   6.     └─polmineR::cpos(...)
   7.       └─polmineR:::.local(.Object, ...)
   8.         └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   9.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_kwic.R:133:5): kwic: Apply kwic on partition_bundle ─────────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'split': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_kwic.R:133:4
    2. ├─base::split(., s_attribute = "speaker")
    3. ├─base::subset(., date == "2009-11-10")
    4. ├─polmineR::subset(., date == "2009-11-10")
    5. │ └─polmineR:::.local(x, ...)
    6. │   └─polmineR:::.recode_call(...)
    7. │     └─polmineR:::.fn(x)
    8. │       └─base::lapply(x, .fn)
    9. │         └─polmineR:::FUN(X[[i]], ...)
   10. │           └─base::iconv(x = x, from = from, to = to)
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  ── Error (test_ngrams.R:13:5): ngrams ──────────────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::count(...) test_ngrams.R:13:4
    2. └─polmineR::count(...)
    3.   └─polmineR:::.local(.Object, ...)
    4.     └─base::lapply(...)
    5.       └─polmineR:::FUN(X[[i]], ...)
    6.         ├─polmineR::cpos(...)
    7.         └─polmineR::cpos(...)
    8.           └─polmineR:::.local(.Object, ...)
    9.             └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   10.               └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_ngrams.R:38:3): ngrams - character ──────────────────────────────
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::ngrams(o, n = 3, char = "") test_ngrams.R:38:2
    2. └─polmineR::ngrams(o, n = 3, char = "")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::get_token_stream(...)
    5.     └─polmineR::get_token_stream(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::get_token_stream(...)
    8.         └─polmineR::get_token_stream(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::decode(...)
   11.             └─polmineR::decode(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_p_attributes.R:24:5): p_attributes,corpus ───────────────────────
  Error: The requested ICU resource file cannot be found. (U_FILE_ACCESS_ERROR)
  Backtrace:
      █
   1. ├─testthat::expect_identical(...) test_p_attributes.R:24:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─polmineR::p_attributes(corpus("REUTERS"), p_attribute = "word")
   5. └─polmineR::p_attributes(corpus("REUTERS"), p_attribute = "word")
   6.   └─polmineR:::.local(.Object, ...)
   7.     └─stringi::stri_encode(lexicon, from = .Object@encoding, to = localeToCharset()[1])
  ── Error (test_partition_bundle.R:23:5): partition_bundle ──────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", interjection = "speech") test_partition_bundle.R:23:4
   2. └─polmineR::partition("GERMAPARLMINI", interjection = "speech")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_pmi.R:8:5): check calculation of pointwise mutual information ───
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::cooccurrences("REUTERS", query = "oil", method = "pmi") test_pmi.R:8:4
    2. └─polmineR::cooccurrences("REUTERS", query = "oil", method = "pmi")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::cooccurrences(...)
    5.     └─polmineR::cooccurrences(...)
    6.       └─polmineR:::.local(.Object, ...)
    7.         ├─polmineR::context(...)
    8.         └─polmineR::context(...)
    9.           └─polmineR:::.local(.Object, ...)
   10.             ├─polmineR::context(...)
   11.             └─polmineR::context(...)
   12.               └─polmineR:::.local(.Object, ...)
   13.                 ├─methods::callNextMethod()
   14.                 └─polmineR:::.nextMethod(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     ├─polmineR::cpos(...)
   17.                     └─polmineR::cpos(...)
   18.                       └─polmineR:::.local(.Object, ...)
   19.                         ├─methods::callNextMethod(...)
   20.                         │ └─base::eval(call, callEnv)
   21.                         │   └─base::eval(call, callEnv)
   22.                         └─polmineR:::.nextMethod(...)
   23.                           └─polmineR:::.local(.Object, ...)
   24.                             ├─polmineR::cpos(...)
   25.                             └─polmineR::cpos(...)
   26.                               └─polmineR:::.local(.Object, ...)
   27.                                 └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   28.                                   └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_pmi.R:19:5): identity of phrase detection of decode-workflow and Cooccurrences workflow ──
  Error: error in evaluating the argument '.Object' in selecting a method for function 'pmi': error in evaluating the argument '.Object' in selecting a method for function 'ngrams': unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_pmi.R:19:4
    2. ├─polmineR::pmi(., observed = count("GERMAPARLMINI", p_attribute = "word"))
    3. ├─polmineR::ngrams(., n = 2L, p_attribute = "word")
    4. ├─polmineR::decode(...)
    5. ├─polmineR::decode(...)
    6. │ └─polmineR:::.local(.Object, ...)
    7. │   └─base::lapply(...)
    8. │     └─polmineR:::FUN(X[[i]], ...)
    9. │       ├─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
   10. │       └─polmineR::get_token_stream(.Object, p_attribute = p_attr, decode = decode)
   11. │         └─polmineR:::.local(.Object, ...)
   12. │           ├─polmineR::get_token_stream(...)
   13. │           └─polmineR::get_token_stream(...)
   14. │             └─polmineR:::.local(.Object, ...)
   15. │               ├─polmineR::decode(...)
   16. │               └─polmineR::decode(...)
   17. │                 └─polmineR:::.local(.Object, ...)
   18. │                   └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
   19. ├─base::.handleSimpleError(...)
   20. │ └─base:::h(simpleError(msg, call))
   21. └─base::.handleSimpleError(...)
   22.   └─base:::h(simpleError(msg, call))
  ── Error (test_s_attributes.R:36:5): multiple s-attributes ─────────────────────
  Error: error in evaluating the argument '.Object' in selecting a method for function 's_attributes': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_s_attributes.R:36:4
    2. ├─polmineR::s_attributes(., s_attribute = c("date", "speaker"))
    3. ├─base::subset(., date == "2009-11-11")
    4. ├─polmineR::subset(., date == "2009-11-11")
    5. │ └─polmineR:::.local(x, ...)
    6. │   └─polmineR:::.recode_call(...)
    7. │     └─polmineR:::.fn(x)
    8. │       └─base::lapply(x, .fn)
    9. │         └─polmineR:::FUN(X[[i]], ...)
   10. │           └─base::iconv(x = x, from = from, to = to)
   11. └─base::.handleSimpleError(...)
   12.   └─base:::h(simpleError(msg, call))
  ── Error (test_size.R:45:5): size of partition ─────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11") test_size.R:45:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_split.R:9:5): split up corpus ───────────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", speaker = "Gerda Hasselfeldt") test_split.R:9:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11", speaker = "Gerda Hasselfeldt")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_subcorpus.R:8:5): generate subcorpus ────────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", speaker = "Angela Dorothea Merkel") test_subcorpus.R:8:4
   2. └─polmineR::partition("GERMAPARLMINI", speaker = "Angela Dorothea Merkel")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_subcorpus_bundle.R:23:5): generate VCorpus from subcorpus_bundle ──
  Error: unsupported conversion from 'latin1' to 'CPutf8' in codepage 65001
  Backtrace:
       █
    1. ├─partition_bundle("REUTERS", s_attribute = "id") %>% as.VCorpus() test_subcorpus_bundle.R:23:4
    2. ├─tm::as.VCorpus(.)
    3. └─polmineR::as.VCorpus(.)
    4.   └─methods::as(x, "VCorpus")
    5.     └─polmineR:::asMethod(object)
    6.       └─base::lapply(...)
    7.         └─polmineR:::FUN(X[[i]], ...)
    8.           ├─polmineR::get_token_stream(p, p_attribute = "word", collapse = " ")
    9.           └─polmineR::get_token_stream(p, p_attribute = "word", collapse = " ")
   10.             └─polmineR:::.local(.Object, ...)
   11.               ├─methods::callNextMethod()
   12.               └─polmineR:::.nextMethod(...)
   13.                 └─polmineR:::.local(.Object, ...)
   14.                   ├─polmineR::get_token_stream(...)
   15.                   └─polmineR::get_token_stream(...)
   16.                     ├─polmineR::get_token_stream(cpos(.Object), ...)
   17.                     └─polmineR::get_token_stream(cpos(.Object), ...)
   18.                       └─polmineR:::.local(.Object, ...)
   19.                         ├─polmineR::decode(...)
   20.                         └─polmineR::decode(...)
   21.                           └─polmineR:::.local(.Object, ...)
   22.                             └─base::iconv(y, from = corpus@encoding, to = localeToCharset()[1])
  ── Error (test_subcorpus_bundle.R:49:5): count over subcorpus_bundle ───────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─partition_bundle("REUTERS", s_attribute = "id") %>% count(query = "oil") test_subcorpus_bundle.R:49:4
    2. ├─polmineR::count(., query = "oil")
    3. └─polmineR::count(., query = "oil")
    4.   └─polmineR:::.local(.Object, ...)
    5.     ├─polmineR::hits(...)
    6.     └─polmineR::hits(...)
    7.       └─polmineR:::.local(.Object, ...)
    8.         ├─polmineR::blapply(...)
    9.         └─polmineR::blapply(...)
   10.           └─polmineR:::.local(x, ...)
   11.             └─base::lapply(X = x, FUN = f, ...)
   12.               └─polmineR:::FUN(X[[i]], ...)
   13.                 ├─polmineR::cpos(...)
   14.                 └─polmineR::cpos(...)
   15.                   └─polmineR:::.local(.Object, ...)
   16.                     └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   17.                       └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_subcorpus_bundle.R:60:5): from subcorpus to count_bundle ────────
  Error: error in evaluating the argument '.Object' in selecting a method for function 'count': error in evaluating the argument 'x' in selecting a method for function 'split': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_subcorpus_bundle.R:60:4
    2. ├─polmineR::count(., p_attribute = "word")
    3. ├─base::split(., s_attribute = "speaker")
    4. ├─base::subset(., speaker %in% c("Angela Dorothea Merkel", "Hubertus Heil"))
    5. ├─polmineR::subset(...)
    6. │ └─polmineR:::.local(x, ...)
    7. │   └─polmineR:::.recode_call(...)
    8. │     └─polmineR:::.fn(x)
    9. │       └─base::lapply(x, .fn)
   10. │         └─polmineR:::FUN(X[[i]], ...)
   11. │           └─base::lapply(x, .fn)
   12. │             └─polmineR:::FUN(X[[i]], ...)
   13. │               └─base::iconv(x = x, from = from, to = to)
   14. ├─base::.handleSimpleError(...)
   15. │ └─base:::h(simpleError(msg, call))
   16. └─base::.handleSimpleError(...)
   17.   └─base:::h(simpleError(msg, call))
  ── Error (test_subcorpus_bundle.R:98:5): hits-method for subcorpus_bundle ──────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─polmineR::hits(b, query = "Integration") test_subcorpus_bundle.R:98:4
    2. └─polmineR::hits(b, query = "Integration")
    3.   └─polmineR:::.local(.Object, ...)
    4.     ├─polmineR::blapply(...)
    5.     └─polmineR::blapply(...)
    6.       └─polmineR:::.local(x, ...)
    7.         └─base::lapply(X = x, FUN = f, ...)
    8.           └─polmineR:::FUN(X[[i]], ...)
    9.             ├─polmineR::cpos(...)
   10.             └─polmineR::cpos(...)
   11.               └─polmineR:::.local(.Object, ...)
   12.                 └─polmineR::as.corpusEnc(query, corpusEnc = .Object@encoding)
   13.                   └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_subcorpus_bundle.R:112:5): merge-method for subcorpus_bundle ────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─corpus("GERMAPARLMINI") %>% subset(interjection == "speech") test_subcorpus_bundle.R:112:4
   2. ├─base::subset(., interjection == "speech")
   3. └─polmineR::subset(., interjection == "speech")
   4.   └─polmineR:::.local(x, ...)
   5.     └─polmineR:::.recode_call(...)
   6.       └─polmineR:::.fn(x)
   7.         └─base::lapply(x, .fn)
   8.           └─polmineR:::FUN(X[[i]], ...)
   9.             └─base::iconv(x = x, from = from, to = to)
  ── Error (test_subcorpus_bundle.R:122:5): ngrams-method for subcorpus_bundle ───
  Error: error in evaluating the argument '.Object' in selecting a method for function 'ngrams': error in evaluating the argument 'x' in selecting a method for function 'split': error in evaluating the argument 'x' in selecting a method for function 'subset': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_subcorpus_bundle.R:122:4
    2. ├─polmineR::ngrams(., n = 2)
    3. ├─base::split(., s_attribute = "speaker")
    4. ├─base::subset(., date == "2009-11-11")
    5. ├─base::subset(., interjection == "speech")
    6. ├─polmineR::subset(., interjection == "speech")
    7. │ └─polmineR:::.local(x, ...)
    8. │   └─polmineR:::.recode_call(...)
    9. │     └─polmineR:::.fn(x)
   10. │       └─base::lapply(x, .fn)
   11. │         └─polmineR:::FUN(X[[i]], ...)
   12. │           └─base::iconv(x = x, from = from, to = to)
   13. ├─base::.handleSimpleError(...)
   14. │ └─base:::h(simpleError(msg, call))
   15. ├─base::.handleSimpleError(...)
   16. │ └─base:::h(simpleError(msg, call))
   17. └─base::.handleSimpleError(...)
   18.   └─base:::h(simpleError(msg, call))
  ── Error (test_subcorpus_bundle.R:140:5): split-method for subcorpus_bundle ────
  Error: error in evaluating the argument 'x' in selecting a method for function 'split': error in evaluating the argument 'x' in selecting a method for function 'split': unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
       █
    1. ├─`%>%`(...) test_subcorpus_bundle.R:140:4
    2. ├─base::split(., s_attribute = "speaker")
    3. ├─base::split(., s_attribute = "date")
    4. ├─base::subset(., interjection == "speech")
    5. ├─polmineR::subset(., interjection == "speech")
    6. │ └─polmineR:::.local(x, ...)
    7. │   └─polmineR:::.recode_call(...)
    8. │     └─polmineR:::.fn(x)
    9. │       └─base::lapply(x, .fn)
   10. │         └─polmineR:::FUN(X[[i]], ...)
   11. │           └─base::iconv(x = x, from = from, to = to)
   12. ├─base::.handleSimpleError(...)
   13. │ └─base:::h(simpleError(msg, call))
   14. └─base::.handleSimpleError(...)
   15.   └─base:::h(simpleError(msg, call))
  ── Error (test_summary.R:8:5): summary,partition-method ────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("GERMAPARLMINI", date = "2009-11-11") test_summary.R:8:4
   2. └─polmineR::partition("GERMAPARLMINI", date = "2009-11-11")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  ── Error (test_summary.R:29:5): summary,count-method ───────────────────────────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─base::subset(corp, date == "2009-11-11") test_summary.R:29:4
   2. └─polmineR::subset(corp, date == "2009-11-11")
   3.   └─polmineR:::.local(x, ...)
   4.     └─polmineR:::.recode_call(...)
   5.       └─polmineR:::.fn(x)
   6.         └─base::lapply(x, .fn)
   7.           └─polmineR:::FUN(X[[i]], ...)
   8.             └─base::iconv(x = x, from = from, to = to)
  ── Error (test_terms.R:7:3): terms-method for partition, without/with regex ────
  Error: unsupported conversion from 'CPutf8' to 'latin1' in codepage 65001
  Backtrace:
      █
   1. ├─polmineR::partition("REUTERS", places = "kuwait") test_terms.R:7:2
   2. └─polmineR::partition("REUTERS", places = "kuwait")
   3.   └─polmineR:::.local(.Object, ...)
   4.     └─base::lapply(def, function(x) as.corpusEnc(x, corpusEnc = p@encoding))
   5.       └─polmineR:::FUN(X[[i]], ...)
   6.         └─polmineR::as.corpusEnc(x, corpusEnc = p@encoding)
   7.           └─base::iconv(x, from = from, to = corpusEnc)
  
  [ FAIL 72 | WARN 383 | SKIP 6 | PASS 198 ]
  Error: Test failures
  Execution halted