Changelog
Source:NEWS.md
rvg 0.4.2
CRAN release: 2026-04-24
Features
- new method
sheet_add_drawing.dml()to add vector graphics to an Excel sheet viaofficer::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
-
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.
rvg 0.4.1
CRAN release: 2026-02-16
Issues
- Text no longer inherits bold/italic style from PowerPoint/Excel templates;
bandiattributes are now always set explicitly in run properties. - Shapes without fill now emit explicit
<a:noFill/>instead of omitting the fill element, preventing unintended theme fill inheritance in PowerPoint/Excel. - Circles (points) outside the clipping region are now skipped, preventing data points from appearing beyond plot limits.
- Text is no longer vertically shifted in PowerPoint/Excel output; removed explicit line spacing that conflicted with the centered anchor of text boxes.
changes
-
dml_xlsx()no longer exposes theraster_prefixargument; raster files are now written to an internal temporary directory. The prefix is embedded in the output as an XML comment (<!-- rvg_raster_prefix:... -->), which callers can read afterdev.off()to locate the PNG files. - Implement
xlsx_pathcallback for the XLSX device, enablinggeom_pathand path-based geometries in Excel output. - Compound paths (
pptx_path/xlsx_path) now combine all sub-polygons into a single<a:path>element within<a:custGeom>, so holes (donuts, cut-out polygons) render correctly via winding rule. - Bump
deviceVersionto v15 (R_GE_group) on R >= 4.2, avoiding redundant double-clipping by the graphics engine and enabling thecapabilitiescallback so thatdev.capabilities()reports explicitly unsupported features (patterns, masks, clipping paths, compositing, transformations). This eliminates the “Unable to check capabilities” warning from ggplot2. - Font resolution now uses
gdtools::font_set_auto()to detect system fonts forsans,serif,monoandsymbolaliases. Minimum gdtools version bumped to 0.5.0. -
validate_fonts()now warns when user-supplied font families are not found on the system. - Documentation clarifies that fonts are not embedded in DrawingML output and must be available on the reader’s system.
rvg 0.3.1
CRAN release: 2022-12-21
rvg 0.1.9
CRAN release: 2018-06-10
Enhancement
- add path method to PowerPoint device. As an effect
ggplot2::geom_sfis now supported. - argument
typeof functionph_with_vgnow default to “body”.
rvg 0.1.7
CRAN release: 2017-12-03
add argument
ggobjtoph_with_vg()andph_with_vg_at(). It can be used as replacement tocode=print(gg)when gg is a ggplot object.new function
xl_add_vg()to add vector graphics produced from R into Excel workbooks. This requiresofficer >= 0.2.0.
rvg 0.1.4
CRAN release: 2017-06-23
- raster images dpi has been increased
- new ‘ph_with_vg_at’ methods for package officer
rvg 0.1.3
CRAN release: 2017-03-10
- new ‘body_add_vg’ and ‘ph_with_vg’ methods for package officer
- deletion of write_* functions, these are now available in officer (functions print)
rvg 0.1.2
CRAN release: 2017-01-03
- add donttest tags in all examples to avoid long runs due to fontconfig initialisation
- change textbox in Word graphics so that text auto-adjusts.
rvg 0.1.0
CRAN release: 2016-06-27
- adapt code to xml2 1.0 (use xml_find_first instead of deprecated xml_find_one)