yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

format 1-dim table in multiple lines #32

Closed peranti closed 7 years ago

peranti commented 7 years ago

How to fit the table output according to the page width when using printr table function?

table(sample(stringi::stri_rand_strings(20, 3), 200, replace = TRUE))

2

The output of the above code exceeds the page width. How to print the table into multiple lines if the width is exceeding the page width?

yihui commented 7 years ago

Closing because it has been asked on SO: https://stackoverflow.com/q/45522678/559676