tests/testthat/test_charngram.R

require(tm)
test_that("Integration with tm", {
    expect_true(length(ngramrr("hello", char = TRUE, ngmax = 3, ngmin = 2)) == 7)
    expect_true(length(ngramrr("hello", char = TRUE, ngmax = 3)) == 12)
})

Try the ngramrr package in your browser

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

ngramrr documentation built on May 2, 2019, 11:28 a.m.