R FlexDashboard:导航标题不显示在隐藏的故事板上

发布于 2025-01-24 02:41:37 字数 876 浏览 4 评论 0原文

我正在构建一个flexdashboard。在开始页面上,应该有一些链接导致几个隐藏的故事板(即,以便故事板不会出现在顶部的导航栏中)。

但是,似乎在故事板页面上使用{.hidden}干扰导航字幕:只有三个字幕可见:屏幕截图

使用箭头,仍然可以访问所有三个图,但没有字幕。

有人知道如何使隐藏的故事板页面工作吗?

我正在使用R 4.2.0; FlexDashboard 0.5.2; Rstudio 2022.02.1 可重现的例子:

---
title: "Untitled"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
```

Start page
===========================================================
[Link](#storyboard)

Storyboard{.storyboard .hidden}
===========================================================

### Chart A
```{r}
boxplot(mtcars$mpg)
```

### Chart B
```{r}
boxplot(mtcars$cyl)
```

### Chart C
```{r}
boxplot(mtcars$hp)
```

I am building a Flexdashboard. On the start page there should be links leading to several hidden storyboard (i.e. so that the storyboards do not show up in the navigation bar at the top).

However, it appears that using {.hidden} on a storyboard page interferes with the navigation captions: only the first caption of three is visible: Screenshot

Using the arrows one can still access all three graphs but without the captions.

Does anybody know how to make hidden storyboard-pages work?

I am using R 4.2.0; Flexdashboard 0.5.2; RStudio 2022.02.1
Reproducible example:

---
title: "Untitled"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
```

Start page
===========================================================
[Link](#storyboard)

Storyboard{.storyboard .hidden}
===========================================================

### Chart A
```{r}
boxplot(mtcars$mpg)
```

### Chart B
```{r}
boxplot(mtcars$cyl)
```

### Chart C
```{r}
boxplot(mtcars$hp)
```

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文