For example, we can write something like in http://christophergandrud.github.io/networkD3/ We can also include some live rendering examples in the documentation via RMarkdown See also https://github.com/process-analytics/bpmn-visualization-R/issues/23#issuecomment-909364915 for a working example with our package