I am creating a dashboard in R Markdown with flexdashboard. I would like to include a scrollable, downloadable table of data, and I know that the package DT has this functionality, but I keep getting an error that says Error: Argument of length 0.
Specifically, I'm using the following code in a flexdashboard:
iris %>%
datatable()
This doesn't work with a flexdashboard output, but it does work in HTML markdown output. Is this a bug? Does the code need to be changed for flexdashboard? Or is there another way to accomplish this with flexdashboard?