R Graphics Devices for 'Office' Vector Graphics Output
Overview
Vector Graphics devices for 'Microsoft PowerPoint' and 'Microsoft Excel'. Functions extending package 'officer' are provided to embed 'DrawingML' graphics into 'Microsoft PowerPoint' presentations and 'Microsoft Excel' workbooks.
Features
- new method
sheet_add_drawing.dml()to add vector graphics to an
Excel sheet via officer::sheet_add_drawing(). This provides a unified
API for adding drawings to xlsx workbooks.
Issues
sheet_add_drawing.dml()now appends its anchor to the sheet's existing drawing part (viaofficer::xlsx_drawing) instead of creating a second drawing part and a second<drawing>reference on the worksheet. Mixingdmlwith othersheet_add_drawing()methods (external_img,gg,ms_chart) on the same sheet now produces a valid xlsx.
Changes
Show all changes in 0.4.2Hide the rest of the changes in 0.4.2
xl_add_vg()is now deprecated in favour ofsheet_add_drawing().- Wrapped the two
Rf_error()calls inpptx_new_page()andxlsx_new_page()with parentheses ((Rf_error)(...)) so they remain direct C-ABI calls instead of going through the Rcpp override (#66). These are device callbacks whereRf_error's longjmp is the correct signalling mechanism.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 7 (1 internal)
- Examples that run
- 33%2 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 80%
- Documented parameters
- 53%
- Return-value docs
- 0%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 36%
- Median days to close, 50 most recently updated closed issues
- 23
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/davidgohel/rvg on 2026-10-18.
The R CMD check workflow runs on Linux and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-18 · The repository has a site deploy workflow
pkgdown site last built 2026-05-18
Show all practicesHide 2 practices
Dependencies
Installing rvg adds 40 packages (28 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, fontLiberation 4.3 MB, fontquiver 2.1 MB.
Show all 16 packagesHide all 16 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.4.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.4.12026-02-16 · diff ↗
- 0.4.02025-10-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.52025-03-27 · diff ↗
- 0.3.42024-08-27 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.3.32023-05-10 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.3.22023-01-07 · diff ↗
- 0.3.12022-12-21 · diff ↗
- 0.3.0
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.2.5
Show 27 earlier eventsHide 27 earlier events
- 0.2.4.12020-06-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.2.42020-02-17 · diff ↗
- 0.2.32020-01-27 · diff ↗
- 0.2.22019-11-11 · diff ↗
- 0.2.1
- RR 3.6.0 released · 2019-04-26
- 0.2.0
- 0.1.92018-06-11 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.82018-02-13 · diff ↗
- 0.1.7
- 0.1.62017-10-05 · diff ↗
- 0.1.52017-09-05 · diff ↗
- 0.1.4
- RR 3.4.0 released · 2017-04-21
- 0.1.32017-03-11 · diff ↗ ·
removed 3 exports
write_docx, write_pptx, write_xlsxadded 2 exports
body_add_vg, ph_with_vg - 0.1.22017-01-03 · diff ↗
- 0.1.12016-11-02 · diff ↗
- 0.1.02016-06-27 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.0.9
- 0.0.82016-03-04 · diff ↗ ·
removed 9 exports
interactivePointsGrob, interactivePolygonGrob, interactivePolylineGrob, interactiveRectGrob, interactiveSegmentsGrob, interactiveTextGrob, send_click, send_tooltip, set_data_id - 0.0.7
- 0.0.62016-01-26 · diff ↗ ·
added 6 exports
interactivePointsGrob, interactivePolygonGrob, interactivePolylineGrob, interactiveRectGrob, interactiveSegmentsGrob, interactiveTextGrob - 0.0.52016-01-06
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-01-06
- Total releases
- 31 / 10 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.0
- Download size
- 38 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rvg")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-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.