Set output id on rendered objects in Interactive RMarkdown

Hi,

Is there a way to specify the id of a widget generated via a renderX() function in an interactive RMarkdown document (with Shiny runtime)?

For example, if I render a plotly chart using plotly::renderPlotly(), the div block containing it will get a random id, which would not happen in a Shiny app (it gets the output name).

I tried for this particular case to pass an id as outputArgs (as in here), but it complains that it is not a valid argument. I don't know if this is a particular case for plotly or for any widget and I am interested in a generic solution in any case (if it exists).

Thanks!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.