Package: stringmagic 1.2.0

stringmagic: Character String Operations and Interpolation, Magic Edition

Performs complex string operations compactly and efficiently. Supports string interpolation jointly with over 50 string operations. Also enhances regular string functions (like grep() and co). See an introduction at <https://lrberge.github.io/stringmagic/>.

Authors:Laurent R Berge [aut, cre], Morgan Jacob [ctb]

stringmagic_1.2.0.tar.gz
stringmagic_1.2.0.zip(r-4.5)stringmagic_1.2.0.zip(r-4.4)stringmagic_1.2.0.zip(r-4.3)
stringmagic_1.2.0.tgz(r-4.4-x86_64)stringmagic_1.2.0.tgz(r-4.4-arm64)stringmagic_1.2.0.tgz(r-4.3-x86_64)stringmagic_1.2.0.tgz(r-4.3-arm64)
stringmagic_1.2.0.tar.gz(r-4.5-noble)stringmagic_1.2.0.tar.gz(r-4.4-noble)
stringmagic_1.2.0.tgz(r-4.4-emscripten)stringmagic_1.2.0.tgz(r-4.3-emscripten)
stringmagic.pdf |stringmagic.html
stringmagic/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/lrberge/stringmagic/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

interpolationstring

45 exports 15 stars 10.36 score 1 dependencies 28 dependents 40 scripts 11.9k downloads

Last updated 2 months agofrom:e9df4fdd55. Checks:OK: 8 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-win-x86_64NOTESep 15 2024
R-4.5-linux-x86_64OKSep 15 2024
R-4.4-win-x86_64OKSep 15 2024
R-4.4-mac-x86_64OKSep 15 2024
R-4.4-mac-aarch64OKSep 15 2024
R-4.3-win-x86_64OKSep 15 2024
R-4.3-mac-x86_64OKSep 15 2024
R-4.3-mac-aarch64OKSep 15 2024

Exports:.string_magiccat_magiccat_magic_aliascatmaget_interpolated_exprget_interpolated_varsmemamessage_magicmessage_magic_aliasparse_regex_patternpaste_conditionalsmastallstanystcleanstextractstgetstisstopsstreplacestring_allstring_anystring_cleanstring_clean_aliasstring_extractstring_fillstring_getstring_isstring_magicstring_magic_aliasstring_magic_register_funstring_magic_register_opsstring_opsstring_ops_aliasstring_replacestring_splitstring_split2dfstring_split2dtstring_vecstring_vec_aliasstring_whichstsplitstvecstwhichtimer_magic

Dependencies:Rcpp

Tailor-made functions and operations

Rendered fromguide_customization.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2023-08-30
Started: 2023-06-30

string_magic's operations: The reference

Rendered fromref_operations.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-08-16
Started: 2023-06-30

Regular expression flags

Rendered fromref_regex_flags.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-05-02
Started: 2023-06-30

Regular expression logic

Rendered fromref_regex_logic.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2023-07-19
Started: 2023-06-30

string_magic's sepcial operations

Rendered fromref_string_magic_special_operations.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2023-08-23
Started: 2023-07-18

string_magic: Magical String Interpolation

Rendered fromguide_string_magic.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2023-07-21
Started: 2023-07-18

String tools: magic edition

Rendered fromguide_string_tools.rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-05-02
Started: 2023-06-30

Readme and manuals

Help Manual

Help pageTopics
Display messages using interpolated stringscatma cat_magic cat_magic_alias mema message_magic message_magic_alias
Lists the expressions used for interpolation in a 'string_magic' callget_interpolated_expr get_interpolated_vars
'stringmagic''s regular expression parserparse_regex_pattern
Paste a string vector conditionallypaste_conditional
Cleans a character vector from multiple patternsstclean streplace string_clean string_clean_alias string_replace
Extracts a pattern from a character vectorstextract string_extract
Fills a character string up to a sizestring_fill
Gets elements of a character vectorstget string_get
Detects whether a pattern is in a character stringstall stany stis string_all string_any string_is string_which stwhich
String interpolation with operation chaining.string_magic sma string_magic
Create 'string_magic' aliases with custom defaultsstring_magic_alias
Register custom operations to apply them in 'string_magic'string_magic_register_fun string_magic_register_ops
Chains basic operations to character vectorsstops string_ops string_ops_alias
Splits a character string wrt a patternstring_split stsplit
Splits a character vector into a data framestring_split2df string_split2dt
Efficient creation of string vectors with optional interpolationstring_vec string_vec_alias stvec
Sets up a timer that can be used within _magic functionstimer_magic