Can I access SmartArt in word from RMarkdown?


#1

Title explains what I'm after.

I need to generate an editable flow chart in R Markdown for a docx output. All the flowchart graphics in R produce an image rather than an editable structure so can I'm trying to access SmartArt from within R


#2

I haven't done this myself, but there might be a way to do it using the officer package to place an EMF vector image into your Word doc.

https://davidgohel.github.io/officer/articles/offcran/graphics.html#r-plots

Addendum: this wouldn’t produce a SmartArt object, but rather a vector file that you could edit within Word, which sounds like the goal.


#3

The mschart package is fantastic :smile: thanks!