rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

console_print() #339

Closed romainfrancois closed 1 year ago

romainfrancois commented 1 year ago

This is related to https://github.com/rstudio/rstudio/pull/12048 which plays with the idea of printing html widgets directly in the ide console, similarly to how it's done in the viewer: render the html in some temporary directory that can be served by the help server, and then <iframe> that. The difference is that the <iframe> would go to the console.

This would allow to print richer things in the console, beyond text. An initial use case is https://github.com/r-lib/rlang/issues/1440 but we could easily imagine other things: embedding a DT table right there in the console, ...

https://github.com/rstudio/rstudio/pull/12048 (still wip) takes care of the ide side, but I think we'd need something here too. I'll prepare a simple pr for further discussion.

romainfrancois commented 1 year ago

Closing this until it's more clear in the ide side.