Package: ahocorasick 0.2.0

Hao Cheng

ahocorasick: Fast Multi-Pattern String Matching with the 'Aho-Corasick' Algorithm

Provide fast multi-pattern string matching for 'R' using the 'Aho-Corasick' algorithm, powered by the 'Rust' 'aho-corasick' crate. It builds reusable automatons for detecting matches, counting matches, locating character, extracting matched text, and replacing matches in character vectors. For more details on the 'Aho-Corasick' algorithm, please see Aho and Corasick (1975) <doi:10.1145/360825.360855>.

Authors:Hao Cheng [aut, cre, cph]

ahocorasick_0.2.0.tar.gz
ahocorasick_0.2.0.tar.gz(r-4.7-arm64)ahocorasick_0.2.0.tar.gz(r-4.7-x86_64)ahocorasick_0.2.0.tar.gz(r-4.6-arm64)ahocorasick_0.2.0.tar.gz(r-4.6-x86_64)
ahocorasick_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ahocorasick/json (API)
NEWS

# Install 'ahocorasick' in R:
install.packages('ahocorasick', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yousa-mirage/r-ahocorasick/issues

Pkgdown/docs site:https://yousa-mirage.github.io

On CRAN:

Conda:

rustcargo

2.70 score 16 exports 5 dependencies

Last updated from:1354361531. Checks:4 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE168
linux-devel-x86_64NOTE160
source / vignettesOK221
linux-release-arm64NOTE172
linux-release-x86_64NOTE1941
wasm-releaseOK144

Exports:ac_buildac_countac_count_fileac_detectac_detect_fileac_extractac_extract_dfac_extract_fileac_infoac_locateac_locate_bytesac_locate_dfac_locate_fileac_patternsac_replaceac_replace_file

Dependencies:backportscheckmateclifsrlang

Benchmarks

Rendered frombenchmarks.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2026-06-02
Started: 2026-06-02