Closed wlandau closed 3 years ago
Thanks for the feedback @wlandau. @steffilazerte can you please have a look?
@maelle Is this possible? I can add it to the blog guide, but I'm not at all sure about how this works with Hugo.
I think that's the current guidance, to host the interactive things somewhere else?
Instead of using html widgets (DT, leaflet, etc.), include a screenshot and use the link option of the Hugo figure shortcode to direct readers to an online version of the widget.
If I remember correctly, this was after a discussion with @jeroen.
I am drafting a post that uses
visNetwork
widgets. Normally, in R Markdown, I just callvisNetwork()
, and the widget appears in the HTML. But because the site renders differently than a local call tormarkdown::render()
on the Rmd file, the widgets do not appear. I am currently working around this withvisNetwork::visSave()
(which just callshtmlwidgets::saveWidget()
) and an iframe to load the HTML file. This mostly works, but the external HTML files are inconvenient, and the widths and heights were difficult to coordinate between the widget and the iframe.Is it possible to embed widgets without external files? If so, it would be nice if this were part of the guide.