2

I'm having a lot of trouble rendering kable and kableExtra output correctly using R Notebooks, both inline and in the HTML Preview.

I've changed the print handling in the YAML header to kable (not sure this is necessary?):

---
title: "MIPS Sample Overlap with ASC"
output:
  html_notebook:
    theme: lumen
    df_print: kable
  html_document:
    df_print: kable
  pdf_document: default
---

When I run the command inside the notebook, the output appears inline, however there are two problems:

  1. It usually has a very large empty white space at the bottom.

  2. It always replaces my whole notebook preview in the RStuduio Viewer with a copy of just the kable_styling() output.

enter image description here

When I reload the notebook preview, the table is now rendered in its proper context, but without the lines seen in the inline output. This happens with kable alone as well.

enter image description here

What am I doing wrong?

Thank you!

Carmen Sandoval
  • 2,266
  • 5
  • 30
  • 46

0 Answers0