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

Deal with bookdown better #473

Open
elinw opened this issue Jul 13, 2019 · 5 comments
Open

Deal with bookdown better #473

elinw opened this issue Jul 13, 2019 · 5 comments

Comments

@elinw
Copy link
Collaborator

elinw commented Jul 13, 2019

We have a few issues related to rendering in bookdown. It's just a special case of rendering, but it's an important one, so I'd like to centralize here.
#453 #424 ... what else?

@elinw
Copy link
Collaborator Author

elinw commented Dec 25, 2019

What about if we made a compact print that didn't include the lines?

Are we assuming the if someone is in bookdown they will organize the width themselves by selecting which statistics and potentially skimming twice to break it into outputs that fit on a page?

@elinw
Copy link
Collaborator Author

elinw commented Jan 2, 2020

#561

@srwerth
Copy link

srwerth commented Jan 2, 2022

I'm having trouble with skimr and bookdown as well. When I knit a document with the skim_without_charts() function, the table is too wide for the page and has no horizontal scrollbar. The screenshot below shows where the chart is getting cut off. I removed one of the table variables (complete_rate) to try to make it fit on the screen, but I don't want to lose any of the others.
Screen Shot 2022-01-02 at 4 18 53 PM

@elinw
Copy link
Collaborator Author

elinw commented Jan 8, 2022

Yes, and this relates to the issue of data with many columns. #370 I think we need to look closely at the print methods and see if we can add an option to allow nice splitting up into subtables beyond a set number of columns. I think the Pander package does this. I'm looking at thos means and sds also and wondering why they are rendering with so many columns, but that is probably a function of your data. @michaelquinn32 what do you think?

@michaelquinn32
Copy link
Collaborator

kableExtra can support horizontal scrolling.
https://stackoverflow.com/questions/45849433/horizontal-scrolling-in-rmarkdown/45886734

This should be pretty easy to support after #667. We will modify the markdown rendering function, which is what is happening here, to include a horizontal scroll. Or the user can do it.

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

3 participants