repr
repr copied to clipboard
No warning when htmlwidget uses `head`
This code:
https://github.com/IRkernel/repr/blob/6a050b7a76b11515c69849128cf5d9c1a6bf4b12/R/repr_htmlwidget.r#L9
looks as though a warning should be issued when an htmlwidget object attempts to put code in the HTML header. That's what rgl currently does, and it just fails to display with no warning.
I've modified rgl (currently in the devel version 1.0.15) to put the shader code elsewhere as a workaround. In case some other htmlwidget uses the header it would make debugging easier if the warning showed up.
Any idea why the warning doesn’t show up?