Package 'flexsiteboard'

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

Help Index


Flexible Dashboards Split in Sub-Pages

Description

Flexible Dashboards Split in Sub-Pages

Usage

flex_site_board(...)

Arguments

...

see flexdashbaord

Hint: Needs all global JavaScript code before the first header.

Value

a new format for rmarkdown


Convert a Pandoc File

Description

Convert a Pandoc File

Usage

pandoc_convert(
  file,
  text = NULL,
  from = pandoc_input_formats(),
  to = pandoc_output_formats()
)

Arguments

file

file to read

text

string to use instead of file if set

from

input format

to

output format

Value

the converted text

Examples

if (rmarkdown::pandoc_available()) {
  x <- pandoc_convert(
      text = "\\section{Test}", from = "latex", to = "markdown")
  stopifnot(identical(x, "Test\n====") || identical(x, "# Test"))
}

Give all Input Formats Supported by Pandoc

Description

Give all Input Formats Supported by Pandoc

Usage

pandoc_input_formats(use_cache = TRUE)

Arguments

use_cache

don't call Pandoc again

Value

all supported Pandoc input formats


Give all Output Formats Supported by Pandoc

Description

Give all Output Formats Supported by Pandoc

Usage

pandoc_output_formats(use_cache = TRUE)

Arguments

use_cache

don't call Pandoc again

Value

all supported Pandoc output formats


Read a Pandoc File from some Supported Format

Description

Read a Pandoc File from some Supported Format

Usage

pandoc_read(file, text = NULL, from = pandoc_input_formats())

Arguments

file

file to read

text

string to use instead of file if set

from

format of the file

Value

the Pandoc object


Write a Pandoc File

Description

Write a Pandoc File

Usage

pandoc_write(pandoc, to = pandoc_output_formats())

Arguments

pandoc

internal Pandoc representation

to

output format (supported by Pandoc)

Value

the converted text