rstudio / rstudio/flexdashboard
{.mobile} not working well with storyboard
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 848
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to build a Storyboard that shows different plots inside the same section when device is mobile or not mobile.
When using {.mobile} to build a simple flexdashboard, everything went right. But, when I tried to do this with storyboard, the output is a file that shows duplicated section with blank plot on the one that I used the {.mobile} parameter.
Can anyone help me with this?
Here is my simple code:
---
title: "Mobile Specific Component"
output:
flexdashboard::flex_dashboard:
storyboard: true
---
### Chart 1 {.no-mobile}
```{r}
plot(cars)
### Chart 1 {.mobile}
```{r}
plot(cars)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the supplied R Markdown with flexdashboard storyboard mode, comparing the simple dashboard behavior with the storyboard output. Check why the {.mobile} section creates a duplicate with a blank plot; done means mobile and non-mobile sections render once each with their plots visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100