Check 'C' and 'C++' Files using 'Cppcheck'
Overview
Allow to run 'Cppcheck' (https://cppcheck.sourceforge.io/) on 'C' and 'C++' files with a 'R' command or a 'RStudio' addin. The report appears in the 'RStudio' viewer pane as a formatted 'HTML' file. It is also possible to get this report with a 'shiny' application. 'Cppcheck' can spot many error types and it can also give some recommendations on the code.
First release.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 60%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/stla/cppcheckr on 2026-10-11.
The R CMD check workflow runs on Linux
Dependencies
Code & Tests
People & History
- 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
- 1.0.0Latest2022-06-10 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-06-10
- Total releases
- 1 / 4 yrs
- License
- GPL-3 OSI
- Download size
- 66 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cppcheckR")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.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.