Why does datatable not print when looping in rmarkdown?
I am working on creating a dynamic rmarkdown document. The end result should create a tab for each 'classification' in the data. Each tab should have a datatable, from the DT package, with the data printed to it. Below is the code I have been using: --- output: html_document --- # Setup{.tabset} ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) library(knitr) library(DT) ``` ```{r data.setup} set.seed = 1242 rows = 64 data.1 = runif(rows, 25, 75) data.2 = runif(rows, .01, 1) data.3 = runif(rows, 1, 10) classification = c("A", "B", "C", "D") df = data.frame(cbind(data.1 = data.1,