Skip to content

fansi

1.0.7Package record

ANSI Control Sequence Aware String Functions

11packages dependsuggested by 27
2.4Mdownloads / year
95.1%test coverage
13/13flavors OK

Overview

About

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

Changes in 1.0.7
  • 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

CRAN checks
13OK
Slowest check: 2.9 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.7
READMEYes · 1,028 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.7Citation fileNoWebsitenot declared in DESCRIPTION
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

2.4M
CRAN downloads in the past year
Rank #260 · ~6.6K/day · ~201K/mo
Daily download trend is not available in this view yet.
146.8K30 days
471.2K90 days
2.4M1 year
Compare downloads with other packages →
Also on113.5K r2u224 autocran2.3M conda_forge25.2K c2d4u

Repository

56Stars
7Forks
1Open issues
0Open PRs
0Releases
1,542Commits
3Commit identities
rstring-manipulation
1,542 commits · Last activity 2025-11-19 · +1.8% stars, 30d
Responsiveness
How these are sampled
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

2026-07-14 · 552026-10-07 · 56
PracticesBeta

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.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux

Governance and community (1)
Contributing guide
Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing fansi adds no packages beyond those that come with R.

Depends (1)
R >= 3.1.0
Imports (2)
grDevicesutils
LinkingTo (0)
none
Enhances (0)
none

People & History

People (5)
Author, Maintainer since 0.2.1 (2018)
Contributor · added in 1.0.7
Contributor · added in 0.3.0
Copyright holder · added in 1.0.7
UTF8 byte length calcs from src/util.c
Copyright holder, Data contributor · added in 1.0.7
Unicode Character Database derivative data in src/width.c
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.7Latest
    record
    2025-11-19 · current release · diff ↗ ·
    added 1 export
    fansi_unicode_version
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.6
    record
    2023-12-08 · diff ↗
  • 1.0.5
    record
    2023-10-08 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.4
    record
    2023-01-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.3
    record
    2022-03-24 · diff ↗
  • 1.0.2
    record
    2022-01-15 · diff ↗
  • 1.0.0
    record
    2022-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
    record
    2021-05-25 · diff ↗ ·
    added 3 exports
    in_html, make_styles, sgr_256
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4.2
    record
    2021-01-15 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
Show 9 earlier eventsHide 9 earlier events
  • 0.4.1
    record
    2020-01-09 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.4.0
    record
    2018-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
    record
    2018-08-13 · diff ↗ ·
    added 3 exports
    html_code_block, html_esc, set_knit_hooks
  • 0.2.3
    record
    2018-05-06 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.2
    record
    2018-03-31 · diff ↗
  • 0.2.1
    record
    2018-03-23
  • R
    R 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")
Gaslam, B., R Core Team, Unicode, Inc., Chirico, M., & Sales De Andrade, E. (2025). fansi: ANSI Control Sequence Aware String Functions (Version 1.0.7) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fansi version 1.0.7 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy