-
DescriptionConsider the example below. The appearance of the dataset printed on the second slide is affected by the code run on the first. Specifically, if you remove the code on the first slide the data on the second is shown correctly. What's going on here?
Since
which works. So somehow the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It seems to be only print/cat calls. What's the output exactly? |
Beta Was this translation helpful? Give feedback.
-
First, This happens also is you use Then, it happens if you only load the ---
format: html
---
## 1
```{r}
#| message: false
library(pubh)
```
## 2
```{r}
mtcars
``` This gives us the hint that the package pubh is loading something that changes the default behavior. Inspecting the result table and what the package is loading, it seems that the output are huxtable output. We can reproduce now with only this package ---
format: html
---
## 1
```{r}
#| message: false
library(huxtable)
```
## 2
```{r}
mtcars
``` And it happens this function is loading a Settings this works to deactivate the behavior. You can maybe report to pubh (https://github.com/josie-athens/pubh) if they don't document this. Hope it helps understand the behavior. (Not Quarto related, it would be the same in R Markdown). I tried to share my search process so that you can know how to find this kind of understanding next time ! 😉 |
Beta Was this translation helpful? Give feedback.
First, This happens also is you use
html
format. This means that is not arevealjs
problem.Then, it happens if you only load the
pubh
package.This gives us the hint that the package pubh is loading something that changes the default behavior.
Inspecting the result table and what the package is loading, it seems that the output are huxtable output. We can reproduce now with only this package
And it happens this function is loading a
huxtable:::knit_print.data.frame()
method. This means that ever…