renderDataTable ID

I have a table I would like to create dynamically without having it in the ui. When I use the function renderDataTable I am having trouble setting the id of the table. Is this possible? Adding something like outputArgs = list(outputId = "TestTable") does not seem to be working properly as listed in the documentation.

Hi! Welcome!

It’s going to be difficult for anybody to help without some more information, and ideally a reproducible example of your problem. Shiny issues can be more challenging to debug than regular R code, and creating a good Shiny reproducible example is a bit more involved, but we have a guide that covers both topics:

I recommend reading through that and then (assuming you haven’t debugged the problem yourself!) updating your question with as close as you can get to a reproducible example (doesn’t have to be perfect!).