Skip to content

highr

Syntax Highlighting for R Source Code

v0.12 · Mar 5, 2026 · GPL

Description

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>).

Downloads

CRAN

1.1M

Last 30 days

57th

3.3M

Last 90 days

12.4M

Last year

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

r2u CRAN

17.1K

Last 30 days

53.2K

Last 90 days

170.4K

Last year

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

autoCRAN

13

Last 7 days

98

Last 30 days

4

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).

conda-forge CRAN

176K

Last 30 days

547.6K

Last 90 days

1.1M

Last year

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

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 30, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 28, 2026
ERROR r-oldrel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.5/highr.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

701

Files

21

Compiled share

0%

Has compiled src

No

Language breakdown

R 311 (44.4%)Tests 134 (19.1%)Docs 116 (16.5%)Vignettes 140 (20%)

API

Exported functions

4

Internal functions

11

Testing & CI

Has tests

Yes

Test-to-code ratio

0.43

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

50%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

100%

Unsafe pattern score

0

Dep constraint coverage

100%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.3.0

System requirements

C++ standard

License

GPL

License flags

not SPDX, not OSI

History

Versions

15

First release

2013-07-09

Latest release

2026-03-06

Avg cadence

259 days

Cold removal rate

Dep drift

1

LOC over versions

v0.1: 560 LOCv0.2: 657 LOCv0.2.1: 667 LOCv0.3: 689 LOCv0.4: 686 LOCv0.4.1: 688 LOCv0.5: 661 LOCv0.5.1: 672 LOCv0.6: 689 LOCv0.7: 711 LOCv0.8: 701 LOCv0.9: 662 LOCv0.10: 653 LOCv0.11: 642 LOCv0.12: 701 LOC

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

Reverse Dependencies (11)

Dependency Network

Dependencies Reverse dependencies xfun explor knitr questionr rainette rasciidoc shinyCohortBuilder usedthese irace manifestoR multiverse repr highr

Version History

16 tracked
new 0.12 Mar 10, 2026
updated 0.12 ← 0.11 diff Mar 5, 2026
updated 0.11 ← 0.10 diff May 25, 2024
updated 0.10 ← 0.9 diff Dec 21, 2022
updated 0.9 ← 0.8 diff Apr 15, 2021
updated 0.8 ← 0.7 diff Mar 19, 2019
updated 0.7 ← 0.6 diff Jun 8, 2018
updated 0.6 ← 0.5.1 diff May 8, 2016
updated 0.5.1 ← 0.5 diff Sep 17, 2015
updated 0.5 ← 0.4.1 diff Apr 20, 2015
updated 0.4.1 ← 0.4 diff Mar 28, 2015
updated 0.4 ← 0.3 diff Oct 22, 2014
updated 0.3 ← 0.2.1 diff Oct 25, 2013
updated 0.2.1 ← 0.2 diff Jul 29, 2013
updated 0.2 ← 0.1 diff Jul 28, 2013