library(htmltools)
tagQuery(div(div(plotly::plot_ly(mtcars, x = ~wt))))$find("div")
tagQueryFindDescendants_() - Unknown Type! This has not happened before:
Class 'formula' language ~wt
..- attr(*, ".Environment")=<environment: R_GlobalEnv>
Error in .f(.x[[i]], ...) : Unknown type in tagQueryFindDescendants_()
cc @schloerke