Path: blob/main/tests/docs/consistency-checks/r-ref.qmd
3562 views
--- title: "Quarto R Cell Attribute Implementation Reference" format: html: keep-md: true code-background: true --- I thought `output:false` would suppress the output, but no? `echo: false` does it. ```{r} #| echo: false library(ggplot2) ``` ## `label` ```{r} #| label: r-label-1 plot(1:10) ``` (Python Bug?) This appears to break with long labels: ```{r} #| label: python label 1 plot(1:10) ``` ### `fig-cap` ```{r} #| fig-cap: A caption for the figure plot(1:10) ``` **(Styling Bug?) Centering of images appears inconsistent depending on whether they have captions?** ### `fig-subcap` ```{r} #| label: fig-big-caption-test #| fig-cap: Big caption #| fig-subcap: #| - Caption 1 #| - Caption 2 plot(1:10) plot(10:1) ``` **(Python Bug?) Sub-captions don't show up unless `fig-cap` is also there:** ```{r} #| fig-subcap: #| - Caption 1 #| - Caption 2 plot(1:10) plot(10:1) ``` ### `code-fold` and `code-summary` **(Inconsistency?) The R engine sets fold and summary for both the outer and inner div; The Python engine only forwards it to the inner div.** Fold: ```{r} #| code-fold: true plot(1:10) ``` Summary: ```{r} #| code-summary: "some text" plot(1:10) ```