【问题标题】:R DT clips table selection buttons (when text is added to body)R DT 剪辑表格选择按钮(将文本添加到正文时)
【发布时间】:2021-02-16 07:19:53
【问题描述】:

实际行为 - 剪辑

我正在使用带有 flexdashboard 的 R DT 包。当我将文本添加到 DT 表的正文时,仪表板的底部被剪裁(不同程度)。见下文。

---
title: "With text in the body the bottom is clipped"
output: flexdashboard::flex_dashboard
---

Notice at the bottom that "Showing X entries" and "Previous/Next" are both clipped

```{r}
library(DT)
datatable(mtcars)
```

预期行为 - 无剪辑

如果我从表格正文中删除文本,一切都会按预期运行。但我想要我的正文¯_(ツ)_/¯。怎么办?

这是我应该报告的错误,还是有其他我不知道的解决方案?

---
title: "Without text in the body nothing is clipped"
output: flexdashboard::flex_dashboard
---

```{r}
library(DT)
datatable(mtcars)
```

版本信息:

other attached packages:
[1] DT_0.16             flexdashboard_0.5.2

【问题讨论】:

    标签: r r-markdown knitr dt flexdashboard


    【解决方案1】:

    used this link for intel 只需在图表中添加###,有助于将表格与 Flexdashboard 边距对齐

    ---
    title: "With text in the body the bottom is     clipped"
    output: flexdashboard::flex_dashboard
    ---
    
    Notice at the bottom that "Showing X entries" and     "Previous/Next" are both clipped
    
    ###
    ```{r }
    library(DT)
    datatable(mtcars)
    ```    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      • 2017-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多