R Wrapper for 'pikchr' (PIC) Diagram Language
Overview
An 'R' interface to 'pikchr' (https://pikchr.org, pronounced "picture"), a 'PIC'-like markup language for creating diagrams within technical documentation. Originally developed by Brian Kernighan, 'PIC' has been adapted into 'pikchr' by D. Richard Hipp, the creator of 'SQLite'. 'pikchr' is designed to be embedded in fenced code blocks of Markdown or other documentation markup languages, making it ideal for generating diagrams in text-based formats. This package allows R users to seamlessly integrate the descriptive syntax of 'pikchr' for diagram creation directly within the 'R' environment.
Bug fixes
- Fixed a memory leak in the C interface (
pikchr_c): the SVG buffer returned bypikchr()was never freed, leaking on every diagram render. - Guarded the C interface against a possible
NULLreturn frompikchr()that could crash the R session. - Fixed the
heightargument default inpikchr(), which never fell back to the SVGviewBoxheight and produced an emptyheight:CSS rule. - Aligned the documented argument defaults of
pikchr()(width,height,fontSize,fontFamily,align) with the actual function defaults.
Other
- Regenerated the package logo with a geometrically regular hexagon (the previous SVG was horizontally squished) and fixed an invalid
<def>element (now<defs>) in the logo source.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-10
Show 2 earlier changesHide 2 earlier changes
- WARNING12 OK, 1 WARNING2026-05-09
- OK14 OK2026-03-10
Documentation
- Help pages
- 9 (7 internal)
- Examples that run
- 100%1 run in a plain check (under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 89%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Examples HTML
- Pikchr User Manual HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Commits over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/strategicprojects/pikchr on 2026-10-21.
GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow
pkgdown site last built 2026-09-29
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-06-14Named in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.mdCommits: at least 13 crediting it in the message
- Claude CodePull requests: 6 from outside contributors, first on 2026-06-14
- Claude Opus 4.810 commits · Jun 2026
- Claude Opus 5.53 commits · Sep 2026
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2024-09-30
- Total releases
- 6 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 12 KB / 1 file
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("pikchr")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.