heatmaply + flexdashboard = validateCssUnitsizeInfo $ width中的错误:CSS单位必须是单元素数字或字符向量

问题描述

---
title: heatmaply and flexdashboard don't mix...
output: 
  flexdashboard::flex_dashboard
---

### Chart 1
    
```{r}
library(heatmaply)
heatmaply(mtcars) 

我看到了这个问题(2018年):

R shiny error: Error in html tools::validateCssUnit(height); CSS units must be a single-element numeric or character vector

大概是相关的...

  • Heatmaply是版本:1.1.1
  • flexdashboard版本为:0.5.2

解决方法

我以前在代码ggplotly(x)中使用它是导致错误的原因。

我添加了ggplotly(x,height=500,width=1000),错误消失了。