epiverse-trace / epimodelac

Training materials for the epimodelac workshop
https://epiverse-trace.github.io/epimodelac/
Other
8 stars 4 forks source link

HTML widgets: visNetwork and leaflet outputs are not visible #16

Open avallecam opened 10 months ago

avallecam commented 10 months ago

The outputs from these lines are not shown. They generate a white space in the HTML output online:

https://github.com/epiverse-trace/epimodelac/blob/610d829e09c60003ec5319e06a167480e20b0bc1/episodes/epiCo-tutorial.Rmd#L321

https://github.com/epiverse-trace/epimodelac/blob/610d829e09c60003ec5319e06a167480e20b0bc1/episodes/EnfermedadX.Rmd#L427

https://github.com/epiverse-trace/epimodelac/blob/610d829e09c60003ec5319e06a167480e20b0bc1/episodes/EnfermedadX2.Rmd#L427

avallecam commented 10 months ago

This is related to HTML widgets as reported in https://github.com/carpentries/sandpaper/issues/443

The current solution involves getting a figure of the HTML widget as done in this example:

avallecam commented 10 months ago

@juan-umana @kcharniga do you agree if I add a figure of the output generated by the chunk?

kcharniga commented 10 months ago

Okay with me. Thanks Andree!

avallecam commented 9 months ago

About webshot::install_phantomjs(force = TRUE):

It's used to ensure that the {DiagrammeR} widgets appear on the webpages. See info here

Originally posted by @amanda-minter in https://github.com/epiverse-trace/tutorials/issues/98#issuecomment-1865988495)

Let's try to see if this works for this issue too.