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.zip(r-4.7)ahocorasick_0.2.0.zip(r-4.6)ahocorasick_0.2.0.zip(r-4.5)
ahocorasick_0.2.0.tgz(r-4.6-x86_64)ahocorasick_0.2.0.tgz(r-4.6-arm64)ahocorasick_0.2.0.tgz(r-4.5-x86_64)ahocorasick_0.2.0.tgz(r-4.5-arm64)
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://r-multiverse.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:

aho-corasickrustcargo

3.00 score 1 stars 3 scripts 16 exports 5 dependencies

Last updated from:439ab7172c (on v0.2.0). Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK166
linux-devel-x86_64OK157
source / vignettesOK202
linux-release-arm64OK241
linux-release-x86_64OK159
macos-release-arm64OK155
macos-release-x86_64OK236
macos-oldrel-arm64OK137
macos-oldrel-x86_64OK312
windows-develOK135
windows-releaseOK318
windows-oldrelOK303
wasm-releaseOK149

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 May 29 2026.

Last update: 2026-05-23
Started: 2026-05-23