repr icon indicating copy to clipboard operation
repr copied to clipboard

No warning when htmlwidget uses `head`

Open dmurdoch opened this issue 2 years ago • 1 comments

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.

dmurdoch avatar Mar 11 '23 12:03 dmurdoch

Any idea why the warning doesn’t show up?

flying-sheep avatar Jun 05 '23 11:06 flying-sheep