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

Đang mở
#8,763 7 bình luận 1 reaction 1 người được giao Xem trên GitHub

@cscheid đang làm issue này rồi.

Từ ngày 5/6/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
6k
Fork
458
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
41

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto-cli

Tất cả issue của quarto-dev/quarto-cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.