Manor Askenazi
Manor Askenazi

Reputation: 11

heatmaply + flexdashboard = Error in validateCssUnit(sizeInfo$width) : CSS units must be a single-element numeric or character vector

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

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

I saw this question (2018):

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

presumably they are related...

Upvotes: -1

Views: 1153

Answers (1)

zwozich
zwozich

Reputation: 11

I used to have this for code: ggplotly(x) which caused the error.

I added ggplotly(x, height=500, width=1000) and the error went away.

Upvotes: 1

Related Questions