How can I limit the number of displayed lines in the output of commands?
Opened this issue · 1 comments
codingbutstillalive commented
When I generate slidify slides I often run into the problem that the output of a command (for example the "summary" of a linear regression fit) includes too many lines to be displayed all together on a single slide.
How can I control the number of lines to be displayed (and maybe insert a useful hint like "... truncated ..." instead)?
I already tried stuff like "head()", but it didn't solve it.
Best regards!
safferli commented
You should check out knitr, which does the output "knitting". Have you tried something like this: http://stackoverflow.com/questions/23114654/knitr-output-hook-with-an-output-lines-option-that-works-like-echo-26 ?