Skip to contents

SegmentR 0.1.0

Breaking changes

  • Replaced %>% (magrittr) with |> (base R native pipe) throughout all source code, tests, and vignettes. R >= 4.2 is now required.
  • The magrittr pipe is no longer re-exported (R/utils-pipe.R and man/pipe.Rd removed).
  • make_DTMs(): the in_parallel argument is deprecated and ignored. term_counts_par() has been removed.
  • fit_LDAs(): parallelism now uses mirai via purrr::in_parallel() instead of future/furrr.

Bug fixes

  • Fixed stopword removal in make_DTMs(): the buggy purrr::reduce() pre-tokenisation block has been replaced with a post-tokenisation filter, producing correct document-term matrices.

Dependency changes

  • Dropped magrittr, scales, future, and furrr from Imports (14 -> 11).
  • Moved shiny, bslib, DT, ggraph, and tidygraph to Suggests with runtime requireNamespace() guards.
  • Added mirai to Suggests for optional parallelism.
  • Bumped purrr minimum to >= 1.2.0.

Performance

Tests

  • Added snapshot regression tests for make_DTMs, fit_LDAs, explore_LDAs, and the full topic pipeline.
  • Added skip_if_not_installed() guards for optional dependencies in tests.

CI

  • Bumped GitHub Actions to v4, added --no-build-vignettes and --no-manual to R CMD check, removed manual install.packages() blocks.