This may be a pandoc problem, but I'm not sure. Basically, there's a problem that I believe relates to the empty column name that is produced when kable(x, row.names = TRUE) is called in markdown ...