layout_ncol not rendering correctly in the presence of `column: page`

未关闭
#8,763 7 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@cscheid 已经在做这个了。

开始于 2024年6月5日。

评估

这个 Issue 还没有评估数据。

描述

bug layout
Bug description

layout-ncol functionality not working

Steps to reproduce

```{r}
#| label: load-packages
#| echo: false

library(ggplot2)
```

```{r}
#| echo: false

```{r}
#| label: fig-mpg
#| fig-cap: "City and highway mileage for 38 popular models of cars."
#| fig-subcap:
#|   - "Color by number of cylinders"
#|   - "Color by engine displacement, in liters"
#| layout-ncol: 2
#| column: page

ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) +
  geom_point(alpha = 0.5, size = 2) +
  scale_color_viridis_c() +
  theme_minimal()

ggplot(mpg, aes(x = hwy, y = cty, color = displ)) +
  geom_point(alpha = 0.5, size = 2) +
  scale_color_viridis_c(option = "E") +
  theme_minimal()
```
Expected behavior

I am unable to reproduce the quarto computations example in RStudio. the graphs should render side by side as shown here: https://quarto.org/docs/get-started/computations/rstudio.html

Actual behavior

every time I render the file the graphs end up stacked vertically as opposed to showing up side by side.

Your environment

RStudio 2023.12.1+402 "Ocean Storm" Release (4da58325ffcff29d157d9264087d4b1ab27f7204, 2024-01-28) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.12.1+402 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36

Quarto check output

Quarto 1.4.550
[>] Checking versions of quarto binary dependencies..
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.4.550
CodePage: 1252

[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)

[>] Checking LaTeX....................OK
Tex: (not detected)

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

[>] Checking R installation...........OK
Version: 4.3.2
knitr: 1.45
rmarkdown: 2.25 en

[>] Checking Knitr engine render......OK

主要语言
JavaScript
星标
6k
派生
458
平均合并
1 天 9 小时
30 天内合并 PR
41

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。