i'm trying to make a loop with 2 column in rmarkdown html :
- two column in each chapter
- chapters made inside
R ,results='asis'
loop
i tried to combine multi column and loop and it's not working
i'm tryng some frankenstein code with raw html in asis chunk and it's not working
--- title: "test" output: html_document --- ```{r , echo=FALSE , results='asis'} for (i in 1:2){ cat(' \n# titre ', i , " \n ") cat("htmltools::HTML('<div style=\"display: flex;\">')" , " \n ") cat("blabla col 1" , ' \n') cat("htmltools::HTML('</div>')" , " \n ") cat("htmltools::HTML('<div>')" , " \n ") cat("blabla col 2" , ' \n') cat("htmltools::HTML('</div>')" , " \n ") cat("htmltools::HTML('</div>')" , " \n ") } ```