jacob-long / jtools

Tools for summarizing/visualizing regressions and other helpful stuff
https://jtools.jacob-long.com
GNU General Public License v3.0
164 stars 22 forks source link

Can't get chunk option render='normal_print' to work, in a Quarto revealjs presentation #145

Closed jhchou closed 9 months ago

jhchou commented 10 months ago

I installed jtools to display logistic regression model output from glm in a Quarto revealjs presentation. The initial summ() output was the "plain text" version.

I then installed kableExtra and the summ() output was prettified, but took up too much space.

I tried using the chunk option {r, render='normal_print'}, but the output remained prettified.

I also tried setting knitr global chunk options as in your repo:

knitr::opts_chunk$set(
  render = knitr::normal_print,
)
library(jtools)

... also unsuccessfully at getting back to plain text output. Am I doing something wrong?

jacob-long commented 9 months ago

I believe if you set the option "summ-normal-print" to TRUE, you should get equivalent output as if you didn't have kableExtra installed.

So sticking this code somewhere should fix it, if I'm not mistaken:

options("summ-normal-print", TRUE)