Xaringan: kable displaying incorrect

Created on 2 Aug 2017  路  4Comments  路  Source: yihui/xaringan

code:

{r results = 'asis'}

res <-cars
kable(cars)

output:

tbl_xarnigan

any suggestions on how to show a table correctly?

Most helpful comment

Perhaps kable(mtcars, format='html')?

All 4 comments

Perhaps kable(mtcars, format='html')?

@yihui
Better, but the table is rendered without border.

screenshot from 2017-08-03 11-04-49

That is because tables do not have borders by default in your browser. You need CSS, e.g. https://github.com/yihui/hugo-xmin/blob/4888812fd8e4589f14f629f40136bae507471089/static/css/style.css#L43-L50

Was this page helpful?
0 / 5 - 0 ratings

Related issues

richardohrvall picture richardohrvall  路  3Comments

rsangole picture rsangole  路  3Comments

gavinsimpson picture gavinsimpson  路  4Comments

emitanaka picture emitanaka  路  3Comments

bnicenboim picture bnicenboim  路  5Comments