Flexdashboard 多属性页面

Flexdashboard multiple attributes page

我正在学习 flexdashboard 并为未来的应用尝试一些不同的 lay-outs。但是我无法为同一页面分配不同的属性。

我希望第二页有一行lay-out,列在nav-barA中,并且在标题前有一个图标。 当我这样写它们时:使用了 {data-orientation=rows, data-navmenu="Menu A", data-icon="fa-list"} none 个。这样写时:{data-orientation=rows}, {data-navmenu="Menu A"}, {data-icon="fa-list"}只执行最后一个,前两个放在page-title中。当使用不带逗号的第二个时,会发生同样的事情。

我在 examples.

中没有找到任何页面的多个属性示例

如何组合它们?这一定是可能的,因为我无法想象我必须在为我的页面提供 row-format 和将其放入 drop-down 菜单之间做出选择...

这是我使用的代码:


title: "My flexdash"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
runtime: shiny
---

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

Page 1 {data-navmenu="Menu A"}
======================================    
Column {data-width=350}
-----------------------------------------------------------------------
### Chart A
```{r}

```
Column {data-width=650}
-----------------------------------------------------------------------
### Chart B
```{r}

```
# need these attributes to be working but invisible
Page 2 {data-orientation=rows}, {data-navmenu="Menu A"}, {data-icon="fa-list"}
=============================================   
Row {data-width=650}
-----------------------------------------------------------------------   
### Chart C 
```{r}

```
Row {data-width=350}
-----------------------------------------------------------------------
### Chart D
```{r}

```

找到答案:我只需要用 space...

将它们分开
Page 2 {data-orientation=rows data-navmenu="Menu A" data-icon="fa-list"}

谢谢 - 我没有遇到同样的问题(下拉菜单 + 故事板),但你的 rmd 片段正是我解决问题所需要的!也就是说,只是保持两种布局平行,而不是将一种布局硬塞进另一种布局。

Responsable Conception Produit {data-navmenu="Competences par Métier"}
=========================================
<br>
<br>


```{r echo=FALSE, message=FALSE, warning=FALSE, results='asis'}
# Responsable Conception Produit 

...

```