List available supported formats
Usage
pandoc_list_formats(type = c("input", "output"), version = "default")
Arguments
- type
Either list
input
oroutput
formats. It corresponds to call--list-input-formats
and--list-output-formats
respectively.- version
Version to use. Default will be the
"default"
version. Other possible value areA version number e.g
"2.14.1"
The nightly version called
"nightly"
The latest installed version with
"latest"
Pandoc binary shipped with RStudio IDE with
"rstudio"
Pandoc binary found in PATH with
"system"
Value
a data.frame (or a tibble if available) with 2 column:
type
(input or output)formats
(name of the formats that can be used as input or output)
Examples
# which input formats are available
pandoc_list_formats()
#> # A tibble: 41 × 2
#> type formats
#> <chr> <chr>
#> 1 input biblatex
#> 2 input bibtex
#> 3 input commonmark
#> 4 input commonmark_x
#> 5 input creole
#> 6 input csljson
#> 7 input csv
#> 8 input docbook
#> 9 input docx
#> 10 input dokuwiki
#> # ℹ 31 more rows
# which output formats are available
pandoc_list_formats()
#> # A tibble: 41 × 2
#> type formats
#> <chr> <chr>
#> 1 input biblatex
#> 2 input bibtex
#> 3 input commonmark
#> 4 input commonmark_x
#> 5 input creole
#> 6 input csljson
#> 7 input csv
#> 8 input docbook
#> 9 input docx
#> 10 input dokuwiki
#> # ℹ 31 more rows
# target a specific version
pandoc_list_formats("input", version = "system")
#> # A tibble: 42 × 2
#> type formats
#> <chr> <chr>
#> 1 input biblatex
#> 2 input bibtex
#> 3 input commonmark
#> 4 input commonmark_x
#> 5 input creole
#> 6 input csljson
#> 7 input csv
#> 8 input docbook
#> 9 input docx
#> 10 input dokuwiki
#> # ℹ 32 more rows