tests/testthat/test-mute_tokens.R

### mute_tokens ----
test_that("mute_tokens works", {
  res <- prettify(head(hiroba, 32L), col_select = "POS1") |>
    mute_tokens(POS1 %in% c("\u52a9\u8a5e", "\u52a9\u52d5\u8a5e"))
  expect_snapshot_value(res, style = "json2", cran = FALSE)
})

Try the audubon package in your browser

Any scripts or data that you put into this service are public.

audubon documentation built on May 29, 2024, noon