Package: charr 0.1.0

Travers Ching

charr: String Processing Reimagined for 'ALTREP' Strings

An experimental fork of 'stringr'. The functions and semantics are the same, apart from differences between 'ICU' and Unicode versions, but everything is optimized around 'ALTREP' strings (custom high-performance string storage), allowing for faster and more efficient operation.

Authors:Travers Ching [aut, cre, cph], Hadley Wickham [ctb, cph], Posit Software, PBC [ctb, cph], Unicode, Inc. and others [ctb, cph], Marek Gagolewski [ctb, cph], R Consortium [fnd]

charr_0.1.0.tar.gz
charr_0.1.0.zip(r-4.7-x86_64)charr_0.1.0.zip(r-4.7-arm64)charr_0.1.0.zip(r-4.6-x86_64)charr_0.1.0.zip(r-4.6-arm64)charr_0.1.0.zip(r-4.5-x86_64)
charr_0.1.0.tgz(r-4.6-x86_64)charr_0.1.0.tgz(r-4.6-arm64)charr_0.1.0.tgz(r-4.5-x86_64)charr_0.1.0.tgz(r-4.5-arm64)
charr_0.1.0.tar.gz(r-4.7-arm64)charr_0.1.0.tar.gz(r-4.7-x86_64)charr_0.1.0.tar.gz(r-4.6-arm64)charr_0.1.0.tar.gz(r-4.6-x86_64)
charr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
charr/json (API)

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

Bug tracker:https://github.com/charbase/charr/issues

Pkgdown/docs site:https://charbase.github.io

Uses libs:
  • icu– International Components for Unicode
  • c++– GNU Standard C++ Library v3
Datasets:
  • fruit - Sample character vectors for practicing string manipulations
  • sentences - Sample character vectors for practicing string manipulations
  • words - Sample character vectors for practicing string manipulations

On CRAN:

Conda:

quartoicucpp

4.70 score 1 stars 70 downloads 69 exports 7 dependencies

Last updated from:4568c662f0. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK294
linux-devel-x86_64OK336
source / vignettesOK420
linux-release-arm64OK297
linux-release-x86_64OK355
macos-release-arm64OK716
macos-release-x86_64OK1020
macos-oldrel-arm64OK673
macos-oldrel-x86_64OK998
windows-devel-arm64OK1088
windows-devel-x86_64OK947
windows-release-arm64OK1113
windows-release-x86_64OK1003
windows-oldrel-x86_64OK582
wasm-releaseOK488

Exports:boundarycharr_backendcharr_chunks_per_workercharr_min_chunkcharr_threadscollfixedinvert_matchregexstr_cstr_convstr_countstr_detectstr_dupstr_endsstr_equalstr_escapestr_extractstr_extract_allstr_flattenstr_flatten_commastr_gluestr_glue_datastr_ilikestr_interpstr_lengthstr_likestr_locatestr_locate_allstr_matchstr_match_allstr_orderstr_padstr_rankstr_read_linesstr_removestr_remove_allstr_replacestr_replace_allstr_replace_nastr_reversestr_sortstr_splitstr_split_1str_split_fixedstr_split_istr_squishstr_startsstr_substr_sub_allstr_sub<-str_subsetstr_to_camelstr_to_kebabstr_to_lowerstr_to_sentencestr_to_snakestr_to_titlestr_to_upperstr_trimstr_truncstr_uniquestr_viewstr_view_allstr_whichstr_widthstr_wrapstr_write_linesword

Dependencies:charportcligluelifecyclerlangstringivctrs

Under the hood
charr backend | ICU and C++17 | Extended benchmarks | References

Last update: 2026-09-27
Started: 2026-07-26

charr
Installation | Benchmark | Choosing a backend | Additional functions | See also

Last update: 2026-09-26
Started: 2026-07-26

Readme and manuals

Help Manual

Help pageTopics
Convert string to upper case, lower case, title case, or sentence casecase str_to_lower str_to_sentence str_to_title str_to_upper
Select charr's string backendcharr_backend
Tune how parallel work is dividedcharr_chunking charr_chunks_per_worker charr_min_chunk
Set the number of worker threadscharr_threads
Switch location of matches to location of non-matchesinvert_match
Control matching behaviour with modifier functionsboundary coll fixed modifiers regex
Join multiple strings into one stringstr_c
Specify the encoding of a stringstr_conv
Count number of matchesstr_count
Detect the presence/absence of a matchstr_detect
Duplicate a stringstr_dup
Determine if two strings are equivalentstr_equal
Escape regular expression metacharactersstr_escape
Extract the complete matchstr_extract str_extract_all
Flatten a stringstr_flatten str_flatten_comma
Interpolation with gluestr_glue str_glue_data
Compute the length/widthstr_length str_width
Detect a pattern in the same way as 'SQL''s 'LIKE' and 'ILIKE' operatorsstr_ilike str_like
Find location of matchstr_locate str_locate_all
Extract components (capturing groups) from a matchstr_match str_match_all
Order, rank, or sort a character vectorstr_order str_rank str_sort
Pad a string to minimum widthstr_pad
Read a text file as Unicode linesstr_read_lines
Remove matched patternsstr_remove str_remove_all
Replace matches with new textstr_replace str_replace_all
Turn NA into "NA"str_replace_na
Reverse strings by code pointstr_reverse
Split up a string into piecesstr_split str_split_1 str_split_fixed str_split_i
Detect the presence/absence of a match at the start/endstr_ends str_starts
Get and set substrings using their positionsstr_sub str_sub<- str_sub_all
Find matching elementsstr_subset
Convert between different types of programming casestr_to_camel str_to_kebab str_to_snake
Remove whitespacestr_squish str_trim
Truncate a string to maximum widthstr_trunc
Remove duplicated stringsstr_unique
View strings and matchesstr_view str_view_all
Find matching indicesstr_which
Wrap words into nicely formatted paragraphsstr_wrap
Write a character vector as lines to a filestr_write_lines
Sample character vectors for practicing string manipulationsfruit sentences stringr-data words
Extract words from a sentenceword