- 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.
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.
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.
- 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.
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.
- migrate from gdtools to systemfonts
- Use png from the system/Rtools
- throw more informative error message when no plot is generated
- fix issue with raster images that get deleted before being integrated by officer.
- drop cpp11 specification
- use cstdint as required by the CRAN to let the package work with GCC-13.
- add field
SystemRequirementsin DESCRIPTION file so that software dependancies can be managed automatically.
- use new mechanisms of officer 0.5 and drop complex treatments of raster/images for pptx.
- replace call to sprintf by call to snprintf
- use png for rasters
- refactor cpp file tree
- update for changes in the R graphics engine (thanks to Dr Paul Murrell)
- function
body_add_vgis defunct. - functions
ph_with_vgandph_with_vg_athave been removed.
- functions
ph_with_vgandph_with_vg_atare defunct and will be removed in the next release. - rvg web site is now indicated in DESCRIPTION file.
- functions
ph_with_vgandph_with_vg_atare defunct.
- functions
ph_with_vgandph_with_vg_atare deprecated.
- fix issues with default font
- New function
ph_with.dmlanddml, it will replace functionsph_with_vgandph_with_vg_at(they will be deprecated in the next release).
- dsvg is now living in ggiraph package
- add path method to PowerPoint device. As an effect
ggplot2::geom_sfis now supported. - argument
typeof functionph_with_vgnow default to "body".
dml_docxis deprecated and will be removed in later versions. It was maintained for compatibility reasons with package ReporteRs. As ReporteRs will be removed from CRAN 2018-07-16, this function has no more reason to exist.
- fix encoding issues with Windows platforms.
-
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.
- update with officer 1.8
- update with gdtools 1.6
- raster ids are now registered
- raster images dpi has been increased
- new 'ph_with_vg_at' methods for package officer
- new 'body_add_vg' and 'ph_with_vg' methods for package officer
- deletion of write_* functions, these are now available in officer (functions print)
- add donttest tags in all examples to avoid long runs due to fontconfig initialisation
- change textbox in Word graphics so that text auto-adjusts.
- adapt code to gdtools 0.1.1
- adapt code to xml2 1.0 (use xml_find_first instead of deprecated xml_find_one)
- new device driver for Microsoft Excel documents
- add function write_xlsx
- make cliping region id unique in dsvg
- fix rectangle clipping
- stop wrapping text in DrawingML devices
- implementation of clipping (algorithms by Francois Brunetti).
- new function set_attr to set attributes to graphical elements without dependency to jquery nor bootstrap (suggested by Bob Rudis).
-
plot size was truncated to integers
-
lines with opacity were not displayed
- grid support for interactive points, polygons, polylines, rectangles, segments and text