Reputation: 41
I am trying to create interactive RMarkdown document from scrach. The problem that I am occuring is the following.
I would like to divide RMarkdown document content into tabs (it seems visually nicer to me), but when setting the runtime: shiny
in YAML, the RMarkdown tabs dissapers.
So, when knitting
---
output:
html_document
---
## Title {.tabset .tabset-fade}
Content above tabbed region.
### Tab 1
Tab 1 content
### Tab 2
Tab 2 content
I can see tabs, but if switching to (and running)
---
output:
html_document
runtime:shiny
---
## Title {.tabset .tabset-fade}
Content above tabbed region.
### Tab 1
Tab 1 content
### Tab 2
Tab 2 content
tabs disappear.
Does anyone has a clue why that happens? And maybe know how to make tabs reappear?
I am using R version 3.5.1, RStudio Version 1.1.456 (Macintosh; Intel Mac OS X 10_14_3), and R packages shown bellow:
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 compiler_3.5.1 prettyunits_1.0.2 prettydoc_0.2.1 bitops_1.0-6
[6] remotes_2.0.2 tools_3.5.1 digest_0.6.18 pkgbuild_1.0.3 pkgload_1.0.2
[11] evaluate_0.13 memoise_1.1.0 rlang_0.3.1 cli_1.0.1 rstudioapi_0.8
[16] curl_3.2 yaml_2.2.0 xfun_0.6 withr_2.1.2 stringr_1.4.0
[21] knitr_1.22 desc_1.2.0 fs_1.2.7 devtools_2.0.2 rprojroot_1.3-2
[26] glue_1.3.1 R6_2.3.0 processx_3.3.0 rmarkdown_1.12.4 RJSONIO_1.3-0
[31] sessioninfo_1.1.1 callr_3.2.0 magrittr_1.5 backports_1.1.2 ps_1.3.0
[36] htmltools_0.3.6 usethis_1.5.0 rsconnect_0.8.8 assertthat_0.2.0 stringi_1.4.3
[41] RCurl_1.95-4.11 crayon_1.3.4
Thank a lot! Mia
Upvotes: 2
Views: 935
Reputation: 41
This is now solved.
Installing (devtools::install_github('rstudio/rmarkdown')
) the current git version of the rmarkdown
package solves the problem.
(At present, the most recent commit is #d42b1cd1 .)
Thanks
Upvotes: 2