fansi: ANSI Control Sequence Aware String Functions

Counterparts to R string manipulation functions that account for the effects of ANSI text formatting control sequences.

Package details

AuthorBrodie Gaslam [aut, cre], Elliott Sales De Andrade [ctb], R Core Team [cph] (UTF8 byte length calcs from src/util.c), Michael Chirico [ctb] (ORCID: <https://orcid.org/0000-0003-0787-087X>), Unicode, Inc. [cph, dtc] (Unicode Character Database derivative data in src/width.c)
MaintainerBrodie Gaslam <brodie.gaslam@yahoo.com>
LicenseGPL-2 | GPL-3
Version1.0.7
URL https://github.com/brodieG/fansi
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fansi")

Try the fansi package in your browser

Any scripts or data that you put into this service are public.

fansi documentation built on Nov. 19, 2025, 5:07 p.m.