Skip to content

prettycode

1.1.0Package record

Pretty Print R Code in the Terminal

3packages dependsuggested by 5
55Kdownloads / year
76.0%test coverage
11/13flavors OK

Overview

About

Replace the standard print method for functions with one that performs syntax highlighting, using ANSI colors, if the terminal supports them.

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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 53 s · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE9 OK, 5 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMENoVignettesNoNEWSYes · 100% structured · mentions 1.1.0Citation fileNo
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

55K
CRAN downloads in the past year
Rank #1,873 · ~151/day · ~4.6K/mo
Daily download trend is not available in this view yet.
3.1K30 days
10.4K90 days
55K1 year
Compare downloads with other packages →
Also on97 r2u5 autocran76.8K conda_forge16 c2d4u

Repository

106Stars
13Forks
0Open issues
0Open PRs
2Releases
79Commits
8Commit identities
r
79 commits · Last activity 2026-09-24 · 0% stars, 30d · Default branch at 1.1.0.9000, ahead of CRAN 1.1.0 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-08-24 · 1022026-08-25 · 106
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 1 practice
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing prettycode adds 1 package (0 with compiled code, 39 KB of source tarballs). Heaviest: crayon 39 KB.

Depends (0)
none
Imports (2)
crayonutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Imports 3
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (from the free-text Author field) (1)

Maintainer since 1.0.0 (2017)

Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.0Latest
    record
    2019-12-16 · current release · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.0.2
    record
    2018-09-11 · diff ↗ ·
    added 1 export
    prettycode
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.1
    record
    2017-12-12 · diff ↗ ·
    removed 1 export
    print.function
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.0
    record
    2017-01-27
  • R
    R 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.

APA

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

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.

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