Unexpected behavior of kable when called from lapply or from function with print statement
问题 I am trying to understand the two following unexpected behaviors of the kable function when knitting HTML using the knitr package (in RStudio 0.98.977 on Ubuntu 14.04): When two calls of kable are made from within lapply, only the first call produces a pretty display in the final HTML. When two calls of kable are made from within a function that also uses print statements, only the last call produces a pretty display in the final HTML. An example code is written below: Load library: ```{r