I just submitted drake 4.0.0 to CRAN, and the vignettes did not come out properly. To include visNetwork widgets, I used code chunks to write external HTML files and then iframe tags to embed the HTML back into the vignettes. (Self-contained vignettes with HTML widgets require pandoc, which would make the Mac and Solaris CRAN checks spout warnings.) I see a 404 error everywhere there should be an interactive graph. I have tried to use the vignettes/.install_extras
file from R Extensions Manual, but without success.
EDIT So if I want to embed a moderate-sized HTML widget in a vignette, it seems like all current options violate CRAN guidelines:
- Embed the widget in the vignette the natural way. Unfortunately, this approach requires pandoc and enlarges the file size of the vignette, both of which generate warnings and notes in CRAN checks.
Generate the widget as a collection of external HTML files and embed the root file as an iframe.
a. If those html files do not end up in
inst/doc
, the widget is not displayed at all.b. If they do end up in
inst/doc
, then the files will be so big that they generate notes in CRAN checks.
Am I missing something? I do plan to give up on interactivity in vignettes for the next drake patch, but I am disappointed that it came to that.