Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 109

Positioning of datasummary_skim() output in pdf file when knitting rmarkdown file

$
0
0

I'm writing to you to ask for help. More specifically, I am writing a paper as an rmarkdown file, which I can knit to pdf.Here is the R code of one of the chunks:


{r results='asis'}

datasummary_skim(data_df) |>kable_styling(font_size = 8, full_width = FALSE)


The problem is that the output of this code (namely a table) is displayed in the pdf file at the beginning of the page, rather than in its original positioning.

May you help me solve this issue? I've been searching a lot for any possible solution, but I didn't manage to find one.

Thanks in advance!

As mentioned upon, I am expecting this table to be shown in the right position even in the pdf file. Instead, it's displayed at the beginning.


Viewing all articles
Browse latest Browse all 109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>