I am using the summ() function from the jtools package with kableExtra to knit a PDF document. Why is the output being split and how do I stop it?

I am using RStudio 1.3.1093 with R 4.0.2 and I have created a markdown file for a class project. I am using the summ() function from jtools along with kableExtra to make the output from summ() look good. But when I knit the document, the table is split by a paragraph that is supposed to follow it:

Picture of incorrect output

I don't have any extra kable styling or anything, my code is simply:

Pfit <- lm(epa ~ yards_gained + yards_after_catch + air_yards + as.factor(fumble) + as.factor(fumble_lost) + yardline_100 + ydstogo + ydsnet, data = Pdf) summ(Pfit) 

Any ideas on how to fix this? Or is my only option to remove kableExtra?

Related questions 10 Creating good kable output in RStudio 1 How to modularize the output of a kable function? 13 How to split kable over multiple columns? Related questions 10 Creating good kable output in RStudio 1 How to modularize the output of a kable function? 13 How to split kable over multiple columns? 8 How to prevent a kable from splitting between pages? 1 knitr::kable does not pretty print after running an R chunk 0 Problem with KableExtra output tables in Rmarkdown(RStudio): paste0 function 0 How to stop kable from repeating one row to the end of the page 1 Kable output won't align left in rmarkdown 0 kableExtra linebreak cannot produce line breaks 0 Why using kableExtra library wrongly formats output of RMarkdown to Word Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like