Title: | Breaks Single Page Applications from 'flexdashboard' in Multiple Files |
---|---|
Description: | A drop-in replacement for 'flexdashboard' 'Rmd' documents, which implements an after-knit-hook to split the generated single page application in one document per main section to reduce rendering load in the web browser displaying the document. Put all 'JavaScript' stuff needed in all sections before the first headline featuring navigation menu attributes. This package is experimental and maybe replaced by a solution inside 'flexdashboard'. |
Authors: | University Medicine Greifswald [cph], Stephan Struckmann [aut, cre] |
Maintainer: | Stephan Struckmann <[email protected]> |
License: | BSD_2_clause + file LICENSE |
Version: | 0.0.7.9000 |
Built: | 2024-10-31 18:36:10 UTC |
Source: | https://gitlab.com/libreumg/flexsiteboard |
Flexible Dashboards Split in Sub-Pages
flex_site_board(...)
flex_site_board(...)
... |
see Hint: Needs all global JavaScript code before the first header. |
a new format for rmarkdown
Pandoc
FileConvert a Pandoc
File
pandoc_convert( file, text = NULL, from = pandoc_input_formats(), to = pandoc_output_formats() )
pandoc_convert( file, text = NULL, from = pandoc_input_formats(), to = pandoc_output_formats() )
file |
file to read |
text |
string to use instead of file if set |
from |
input format |
to |
output format |
the converted text
if (rmarkdown::pandoc_available()) { x <- pandoc_convert( text = "\\section{Test}", from = "latex", to = "markdown") stopifnot(identical(x, "Test\n====") || identical(x, "# Test")) }
if (rmarkdown::pandoc_available()) { x <- pandoc_convert( text = "\\section{Test}", from = "latex", to = "markdown") stopifnot(identical(x, "Test\n====") || identical(x, "# Test")) }
Pandoc
Give all Input Formats Supported by Pandoc
pandoc_input_formats(use_cache = TRUE)
pandoc_input_formats(use_cache = TRUE)
use_cache |
don't call |
all supported Pandoc
input formats
Pandoc
Give all Output Formats Supported by Pandoc
pandoc_output_formats(use_cache = TRUE)
pandoc_output_formats(use_cache = TRUE)
use_cache |
don't call |
all supported Pandoc
output formats
Pandoc
File from some Supported FormatRead a Pandoc
File from some Supported Format
pandoc_read(file, text = NULL, from = pandoc_input_formats())
pandoc_read(file, text = NULL, from = pandoc_input_formats())
file |
file to read |
text |
string to use instead of file if set |
from |
format of the file |
the Pandoc
object
Pandoc
FileWrite a Pandoc
File
pandoc_write(pandoc, to = pandoc_output_formats())
pandoc_write(pandoc, to = pandoc_output_formats())
pandoc |
internal |
to |
output format (supported by |
the converted text