Skip to content

Syntax Highlighting for R Source Code

8packages dependsuggested by 4
12.9Mdownloads / year
75.5%test coverage
13/13flavors OK

Overview

About

Provides syntax highlighting for R source code. Currently it supports LaTeX and HTML output. Source code of other languages is supported via Andre Simon's highlight package (https://gitlab.com/saalen/highlight).

Install

Health

CRAN checks
13OK
Slowest check: 1.0 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-05-30
  • ERROR12 OK, 1 ERROR2026-05-28
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.12
README· In the repository, left out of the releaseVignettesYes · 2 · dynamicNEWSYes · does not mention 0.12Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
2
Examples that run
50%1 run in a plain check · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
50%

Downloads

12.9M
CRAN downloads in the past year
Rank #60 · ~35.3K/day · ~1.1M/mo
Daily download trend is not available in this view yet.
956.4K30 days
3M90 days
12.9M1 year
Compare downloads with other packages →
Also on235.5K r2u135 autocran1.5M conda_forge4.8K c2d4u

Repository

48Stars
16Forks
0Open issues
0Open PRs
7Releases
167Commits
8Commit identities
rr-packagesyntax-highlightinglatexhtml
167 commits · Last activity 2026-10-19 · Default branch at 0.12.1, ahead of CRAN 0.12 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-04-18 · 482026-07-07 · 48
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/yihui/highr on 2026-10-18.

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)

The repository owner accepts GitHub Sponsors

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-03-05
    Seen in the repository: .github/workflows/copilot-setup-steps.yml
    Pull request: opened by its own account
    Commits: 1 by its own account · at least 1 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing highr adds 1 package (1 with compiled code, 224 KB of source tarballs). Heaviest: xfun 224 KB.

Depends (1)
R >= 3.3.0
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
8direct
3,403indirect
Imports 8
Suggested by 4
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (4)
Author, Maintainer since 0.1 (2013)
Contributor · added in 0.4
Contributor · added in 0.4
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.12Latest
    record
    2026-03-06 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.11
    record
    2024-05-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.10
    record
    2022-12-22 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.9
    record
    2021-04-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.8
    record
    2019-03-20 · diff ↗
  • 0.7
    record
    2018-06-09 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
Show 13 earlier eventsHide 13 earlier events

Package metadata

First published
2013-07-09
Total releases
15 / 13 yrs
License
GPL
Minimum R
≥ 3.3.0
Download size
13 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("highr")
Xie, Y., Gandrud, C., Li, Q., & Qiu, Y. (2026). highr: Syntax Highlighting for R Source Code (Version 0.12) [Computer software]. https://doi.org/10.32614/CRAN.package.highr

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 highr version 0.12 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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