controlling R notebook table output

Is it possible to control the table format when printing data frames with html_notebook output? Specifically, every column is printed full-width, so if you have a wide column, it takes up the entire width of the page and you need to click on the little arrow to see others. It would be nice to condense the columns.

With tibbles, I can set the global option once with options(tibble.width = 80). That will work in the console, but is there something analogous for the HTML output?

I have seen kableExtra (and some similar packages), but that involves calling kable(). I don't want to modify the actual code. I just want to specify a setting somewhere. I checked rmarkdown::html_notebook and knitr::opts_chunk options and did not see anything.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.