Pretty Print R Code in the Terminal
Overview
Replace the standard print method for functions with one that performs syntax highlighting, using ANSI colors, if the terminal supports them.
- Use the colors of the current theme in RStudio.
- Color matching brackets to help distinguish between scopes (#8, @mdequeljoe).
- The withr package is now a development dependency, it is not needed for regular use.
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Gábor Csárdi <csardi.gabor@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Gábor",
family = "Csárdi",
role = c("aut", "cre"),
email = "csardi.gabor@gmail.com")
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 5 (1 internal)
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 33%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 49
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-lib/prettycode on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow
Show all practicesHide 1 practice
Dependencies
Installing prettycode adds 1 package (0 with compiled code, 39 KB of source tarballs). Heaviest: crayon 39 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.1.0Latest
- RR 3.6.0 released · 2019-04-26
- 1.0.2
- RR 3.5.0 released · 2018-04-23
- 1.0.1
- RR 3.4.0 released · 2017-04-21
- 1.0.02017-01-27
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-01-27
- Total releases
- 4 / 9 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 204 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("prettycode")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.