Skip to content

fansi

ANSI Control Sequence Aware String Functions

v1.0.7 · Nov 19, 2025 · GPL-2 | GPL-3

Description

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

Downloads

CRAN

210.2K

Last 30 days

235th

629.5K

Last 90 days

2.4M

Last year

Trend: -0% (30d vs prior 30d)

r2u CRAN

10.8K

Last 30 days

30.6K

Last 90 days

86.4K

Last year

Trend: +0.9% (30d vs prior 30d)

autoCRAN

24

Last 7 days

151

Last 30 days

3

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

29,108

Files

129

Compiled share

27.1%

Has compiled src

Yes

Language breakdown

R 3,174 (10.9%)C/C++/src 7,874 (27.1%)Tests 14,182 (48.7%)Docs 3,484 (12%)Vignettes 394 (1.4%)

API

Exported functions

44

Internal functions

30

Recent export changes

v1.0.7+1 fansi_unicode_version

Testing & CI

Has tests

Yes

Test-to-code ratio

4.47

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

96.9%

\dontrun example ratio

4.3%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1.0

System requirements

C++ standard

License

GPL-2 | GPL-3

License flags

SPDX valid, OSI approved

History

Versions

15

First release

2018-03-23

Latest release

2025-11-19

Avg cadence

115 days

Cold removal rate

Dep drift

2

LOC over versions

v0.2.1: 17,362 LOCv0.2.2: 21,107 LOCv0.2.3: 21,216 LOCv0.3.0: 25,820 LOCv0.4.0: 24,930 LOCv0.4.1: 25,019 LOCv0.4.2: 24,947 LOCv0.5.0: 26,465 LOCv1.0.0: 29,877 LOCv1.0.2: 28,312 LOCv1.0.3: 28,312 LOCv1.0.4: 28,402 LOCv1.0.5: 28,441 LOCv1.0.6: 28,440 LOCv1.0.7: 29,108 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (34)

Dependency Network

Dependencies Reverse dependencies cliapp downlit huxtable miniLNM multimedia pylintR ricu seecolor tidyseurat xpectr ATQ DESA DImodelsMulti PINstimation bmm +19 more reverse deps fansi

Version History

16 tracked
new 1.0.7 Mar 10, 2026
updated 1.0.7 ← 1.0.6 diff Nov 18, 2025
updated 1.0.6 ← 1.0.5 diff Dec 7, 2023
updated 1.0.5 ← 1.0.4 diff Oct 7, 2023
updated 1.0.4 ← 1.0.3 diff Jan 21, 2023
updated 1.0.3 ← 1.0.2 diff Mar 23, 2022
updated 1.0.2 ← 1.0.0 diff Jan 14, 2022
updated 1.0.0 ← 0.5.0 diff Jan 9, 2022
updated 0.5.0 ← 0.4.2 diff May 24, 2021
updated 0.4.2 ← 0.4.1 diff Jan 14, 2021
updated 0.4.1 ← 0.4.0 diff Jan 8, 2020
updated 0.4.0 ← 0.3.0 diff Oct 4, 2018
updated 0.3.0 ← 0.2.3 diff Aug 12, 2018
updated 0.2.3 ← 0.2.2 diff May 5, 2018
updated 0.2.2 ← 0.2.1 diff Mar 30, 2018