tests/testthat/_problems/test-tokens-1307.R

# Extracted from test-tokens.R:1307

# setup ------------------------------------------------------------------------
library(testthat)
test_env <- simulate_test_env(package = "quanteda", path = "..")
attach(test_env, warn.conflicts = FALSE)

# prequel ----------------------------------------------------------------------
quanteda_options("tokens_tokenizer_word" = "word3")

# test -------------------------------------------------------------------------
skip_if_installed("torch")

Try the quanteda package in your browser

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

quanteda documentation built on April 7, 2026, 1:06 a.m.