Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I limit the number of displayed lines in the output of commands? #503

Open
codingbutstillalive opened this issue Oct 24, 2016 · 1 comment

Comments

@codingbutstillalive
Copy link

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants