ANSI Control Sequence Aware String Functions
Overview
Counterparts to R string manipulation functions that account for the effects of ANSI text formatting control sequences.
- Remove internal dependency to non-API
R_nchar. This also updates to use Unicode 17 instead of the Unicode 13 used by R as of R4.5.1. - Add
fansi_unicode_version()to report what version of the Unicode database is in use.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 33 (9 internal)includes a package overview page
- Examples that run
- 96%22 run in a plain check · 1 never run
- Exported functions with examples
- 72%
- Documented parameters
- 79%
- Return-value docs
- 97%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 43%
- Median days to close, 50 most recently updated closed issues
- 40
- Median days to close, 50 most recently updated closed PRs
- 23
Stars over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/brodieg/fansi on 2026-10-21.
The R CMD check workflow runs on Linux
Dependencies
Installing fansi adds no packages beyond those that come with R.
Show all 38 packagesHide all 38 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.7Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.62023-12-08 · diff ↗
- 1.0.52023-10-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.42023-01-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.0.32022-03-24 · diff ↗
- 1.0.22022-01-15 · diff ↗
- 1.0.02022-01-10 · diff ↗ ·
added 10 exports
substr2_ctl<-, substr_ctl<-, close_state, dflt_css, dflt_term_cap, fwl, normalize_state, state_at_end, to_html, trimws_ctl - 0.5.0
- RR 4.1.0 released · 2021-05-18
- 0.4.22021-01-15 · diff ↗
- RR 4.0.0 released · 2020-04-24
Show 9 earlier eventsHide 9 earlier events
- 0.4.12020-01-09 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.4.02018-10-05 · diff ↗ ·
added 9 exports
nchar_sgr, nzchar_sgr, strsplit_sgr, strtrim2_sgr, strtrim_sgr, strwrap2_sgr, strwrap_sgr, substr2_sgr, substr_sgr - 0.3.0
- 0.2.32018-05-06 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.2.22018-03-31 · diff ↗
- 0.2.12018-03-23
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-03-23
- Total releases
- 15 / 8 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 670 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fansi")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.