#> 1 output commonmark smart FALSE #> 2 output epub smart FALSE #> 3 output epub2 smart FALSE #> 4 output epub3 smart FALSE #> 5 output gfm smart FALSE #> 6 output html smart FALSE #> 7 output html4 smart FALSE #> 8 output html5 smart FALSE #> 9 output ipynb smart FALSE #> 10 output markdown_github smart FALSE #> 11 output markdown_mmd smart FALSE #> 12 output markdown_phpextra smart FALSE #> 13 output markdown_strict smart FALSE #> 14 output mediawiki smart FALSE #> 15 output org smart FALSE #> 16 output plain smart FALSE #> 17 output rst smart FALSE"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"installation","dir":"Articles","previous_headings":"","what":"Installation","title":"pandoc","text":"Install CRAN: development version can install GitHub :","code":"install.packages(\"pandoc\") # install.packages(\"pak\") pak::pak(\"cderv/pandoc\") library(pandoc)"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"install-pandoc","dir":"Articles","previous_headings":"","what":"Install pandoc","title":"pandoc","text":"Main usage install latest released version Pandoc. requires gh package fetch information Github download bundle . specific older Pandoc version needed (e.g testing differences version), version can specified. Information fetched Github cached duration session. Sometimes, dev version Pandoc required. Pandoc’s team building binary every day called nightly CI. versions can live together installed isolated directory user’s data folders. Downloaded bundles also cached speed installation. useful tests quickly install uninstall pandoc version specific test. quickly install last available release, run pandoc_update() (alias pandoc_install()already default latest version).","code":"pandoc_install() #> ℹ Using cached version 'github-cache.rds' in instead of fetching GH #> ✔ Pandoc 3.1.12.1 already installed. #> Use 'force = TRUE' to overwrite. pandoc_install(\"2.11.4\") #> ✔ Pandoc 2.11.4 already installed. #> Use 'force = TRUE' to overwrite. # install the nightly version (overwrites previous one) pandoc_install_nightly() # or pandoc_install(\"nightly\") #> ℹ Retrieving last available nightly informations... #> ✔ Last version already installed: 23337fe9dc3afada6b173bbaa90b855bd07abb26 # Which version are currently installed ? pandoc_installed_versions() #> [1] \"nightly\" \"3.1.12.1\" \"3.1.12\" \"3.1.11.1\" \"3.1.11\" \"3.1.10\" #> [7] \"3.1.9\" \"3.1.8\" \"3.1.7\" \"3.1.6.2\" \"3.1.6.1\" \"3.1.6\" #> [13] \"3.1.5\" \"3.1.4\" \"3.1.3\" \"3.1.2\" \"3.1.1\" \"3.1\" #> [19] \"3.0.1\" \"3.0\" \"2.19.2\" \"2.19.1\" \"2.19\" \"2.18\" #> [25] \"2.17.1.1\" \"2.17.1\" \"2.17.0.1\" \"2.17\" \"2.16.2\" \"2.16.1\" #> [31] \"2.16\" \"2.15\" \"2.14.2\" \"2.14.1\" \"2.14.0.3\" \"2.14.0.2\" #> [37] \"2.14.0.1\" \"2.14\" \"2.13\" \"2.12\" \"2.11.4\" \"2.11.3.2\" #> [43] \"2.11.3.1\" \"2.11.3\" \"2.11.2\" \"2.11.1.1\" \"2.11.1\" \"2.11.0.4\" #> [49] \"2.11.0.2\" \"2.11.0.1\" \"2.11\" \"2.10.1\" \"2.10\" \"2.9.2.1\" #> [55] \"2.9.2\" \"2.9.1.1\" \"2.9.1\" \"2.9\" \"2.8.1\" \"2.8.0.1\" #> [61] \"2.8\" \"2.7.3\" \"2.7.2\" \"2.7.1\" \"2.7\" \"2.6\" #> [67] \"2.5\" \"2.4\" \"2.3.1\" \"2.3\" \"2.2.3.2\" \"2.2.3.1\" #> [73] \"2.2.2.1\" \"2.2.2\" \"2.2.1\" \"2.2\" \"2.1.3\" \"2.1.2\" #> [79] \"2.1.1\" \"2.1\" \"2.0.6\" \"2.0.5\" \"2.0.4\" \"2.0.3\" # Which is the latest version installed (nightly excluded)? pandoc_installed_latest() #> [1] \"3.1.12.1\" # Is a specific version installed ? pandoc_is_installed(\"2.11.4\") #> [1] TRUE pandoc_is_installed(\"2.7.3\") #> [1] TRUE pandoc_install(\"2.7.3\") #> ✔ Pandoc 2.7.3 already installed. #> Use 'force = TRUE' to overwrite. pandoc_uninstall(\"2.7.3\") pandoc_install(\"2.7.3\") #> ℹ Installing Pandoc release 2.7.3 #> Downloading bundle... #> ✔ Pandoc version 2.7.3 installed."},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"find-where-a-pandoc-binary-is-located","dir":"Articles","previous_headings":"","what":"Find where a pandoc binary is located","title":"pandoc","text":"version installed package, pandoc_locate() return folder installed. example purposes vignette, path temp directory. Correct location user’s data directory computed rappdirs::user_data_dir() (e.g Windows C:/Users/chris/AppData/Local/r-pandoc/r-pandoc) get path pandoc binary, pandoc_bin() can used function also brings support external pandoc version, like pandoc::pandoc_bin(\"rstudio\") alias pandoc::pandoc_rstudio_bin() pandoc::pandoc_bin(\"system\") alias pandoc::pandoc_system_bin()","code":"pandoc_locate(\"2.11.4\") #> [1] \"~/.local/share/r-pandoc/2.11.4\" pandoc_locate(\"nightly\") #> [1] \"~/.local/share/r-pandoc/nightly\" pandoc_bin(\"2.11.4\") #> ~/.local/share/r-pandoc/2.11.4/pandoc pandoc_bin(\"nightly\") #> ~/.local/share/r-pandoc/nightly/pandoc"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"activate-a-pandoc-version","dir":"Articles","previous_headings":"","what":"Activate a Pandoc version","title":"pandoc","text":"multiple versions can installed, default active pandoc version used function. (version = \"default\"). specific version can made active using pandoc_activate() default active version set package loaded (.e using onLoad) following search order: Latest version install package (.e pandoc_installed_latest()) Version shipped RStudio IDE (found run inside RStudio IDE) pandoc binary found system PATH (.e Sys.(\"pandoc\")) pandoc_is_active() allows easily know specific version active .","code":"# Default to latest version installed pandoc_activate() #> ✔ Version '3.1.12.1' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. pandoc_locate() #> [1] \"~/.local/share/r-pandoc/3.1.12.1\" pandoc_bin() #> ~/.local/share/r-pandoc/3.1.12.1/pandoc # Activate specific version pandoc_activate(\"2.11.4\") #> ✔ Version '2.11.4' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. pandoc_locate() #> [1] \"~/.local/share/r-pandoc/2.11.4\" pandoc_bin() #> ~/.local/share/r-pandoc/2.11.4/pandoc # including nightly pandoc_activate(\"nightly\") #> ✔ Version 'nightly' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. pandoc_locate() #> [1] \"~/.local/share/r-pandoc/nightly\" pandoc_bin() #> ~/.local/share/r-pandoc/nightly/pandoc # Activate system version pandoc_activate(\"system\") #> ✔ Version 'system' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. pandoc_bin() #> /usr/bin/pandoc pandoc_is_active(\"system\") #> [1] TRUE pandoc_is_active(\"2.7.3\") #> [1] FALSE pandoc_activate(\"2.7.3\") #> ✔ Version '2.7.3' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. pandoc_is_active(\"2.7.3\") #> [1] TRUE"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"working-with-rmarkdown-functions-related-to-pandoc","dir":"Articles","previous_headings":"Activate a Pandoc version","what":"Working with rmarkdown functions related to Pandoc","title":"pandoc","text":"default, rmarkdown installed, pandoc_activate() also set version active rmarkdown functions (using rmarkdown::find_pandoc()). allows use package easily order test rmarkdown different version Pandoc. calls equivalent: setting default Pandoc version rmarkdown desired, just run rmarkdown = FALSE testing, also interesting run specific code specific version. with_pandoc_version() local_pandoc_version() allows running pandoc_activate() expression (helper like withr). Default behavior local_pandoc_version() with_pandoc_version() determined option pandoc.activate_rmarkdown.","code":"pandoc_activate(\"2.7.3\") #> ✔ Version '2.7.3' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. rmarkdown::pandoc_available() #> [1] TRUE rmarkdown::pandoc_version() #> [1] '2.7.3' rmarkdown::find_pandoc() #> $version #> [1] '2.7.3' #> #> $dir #> [1] \"/home/runner/.local/share/r-pandoc/2.7.3\" pandoc_activate(\"2.7.3\", rmarkdown = TRUE) #> ✔ Version '2.7.3' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. rmarkdown::find_pandoc(cache = FALSE, dir = pandoc::pandoc_locate(\"2.7.3\")) #> $version #> [1] '2.7.3' #> #> $dir #> [1] \"/home/runner/.local/share/r-pandoc/2.7.3\" pandoc::pandoc_activate(\"2.11.4\", rmarkdown = FALSE) #> ✔ Version '2.11.4' is now the active one. rmarkdown::pandoc_version() #> [1] '2.7.3' # with pandoc package functions with_pandoc_version(\"2.11.4\", { pandoc::pandoc_version() }) #> [1] '2.11.4' # with rmarkdown package functions rmarkdown::pandoc_version() #> [1] '2.11.4' # It will also activate version for rmarkdown with_pandoc_version(\"2.11.4\", { rmarkdown::pandoc_version() }) #> [1] '2.11.4' # rmarkdown = FALSE can be set if not desired with_pandoc_version(\"2.11.4\", rmarkdown = FALSE, { rmarkdown::pandoc_version() }) #> [1] '2.11.4'"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"check-if-a-pandoc-version-is-available","dir":"Articles","previous_headings":"Activate a Pandoc version","what":"Check if a pandoc version is available","title":"pandoc","text":"pandoc version available use (.e version active), full path ? pandoc activated meeting requirements ? Pandoc version can also easily retrieved, including external binaries","code":"if (pandoc_available()) pandoc_bin() #> ~/.local/share/r-pandoc/2.11.4/pandoc # Is the active version above 2.10.1 ? pandoc_available(min = \"2.10.1\") #> [1] TRUE # Is the active version below 2.11 ? pandoc_available(max = \"2.11\") #> [1] FALSE # Is the active version between 2.10.1 and 2.11, both side include ? pandoc_available(min = \"2.10.1\", max = \"2.11\") #> [1] FALSE # Get version from current active one pandoc_version() #> [1] '2.11.4' # Get version for a specific version pandoc_version(\"nightly\") #> [1] '3.1.12.1.9999' # Get version for a specific version pandoc_version(\"system\") # equivalent to pandoc_system_version() #> [1] '2.19.2'"},{"path":[]},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"low-level-call-to-pandoc","dir":"Articles","previous_headings":"Run Pandoc CLI from R","what":"Low level call to Pandoc","title":"pandoc","text":"pandoc_run() function call pandoc binary arguments. default, use active version (version = \"default\", see ?pandoc_activate) equivalent calling correct binary. Using version= argument allows run specific version execute pandoc command pandoc binary PATH.","code":"pandoc_run(\"--version\") #> [1] \"pandoc 2.11.4\" #> [2] \"Compiled with pandoc-types 1.22, texmath 0.12.1, skylighting 0.10.2,\" #> [3] \"citeproc 0.3.0.5, ipynb 0.1.0.1\" #> [4] \"User data directory: /home/runner/.local/share/pandoc or /home/runner/.pandoc\" #> [5] \"Copyright (C) 2006-2021 John MacFarlane. Web: https://pandoc.org\" #> [6] \"This is free software; see the source for copying conditions. There is no\" #> [7] \"warranty, not even for merchantability or fitness for a particular purpose.\" pandoc --version pandoc_run(\"--version\", version = \"system\")"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"convert-a-document","dir":"Articles","previous_headings":"Run Pandoc CLI from R","what":"Convert a document","title":"pandoc","text":"function highly experimental probability API change high. Main usage Pandoc convert document. pandoc::pandoc_convert() currently thinner wrapper rmarkdown::pandoc_convert(). allow convert file former also allow convert text just file.","code":"# convert from text directly pandoc_convert(text = \"# A header\", to = \"html\") #> bold<\/strong> word!<\/p> # write to file out <- tempfile(fileext = \".html\") outfile <- pandoc_convert(tmp, to = \"html\", output = out, standalone = TRUE, version = \"system\") readLines(outfile, n = 5) #> [1] \"\" #> [2] \"\" #> [3] \"\" #> [4] \" \" #> [5] \" \""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"various-wrapper-functions-around-pandoc-cli","dir":"Articles","previous_headings":"Run Pandoc CLI from R","what":"Various Wrapper functions around pandoc CLI","title":"pandoc","text":"included functions run pandoc wrapping pandoc_run() command flags Pandoc MANUAL. functions can take version= argument run specific version Pandoc instead current activated one. functions can used specific pandoc versions error thrown version requirement met.","code":""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"list-supported-extensions-for-a-format","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"List supported extensions for a format","title":"pandoc","text":"","code":"pandoc_list_extensions() #> # A tibble: 68 × 3 #> format extensions default #> #> 1 markdown abbreviations FALSE #> 2 markdown all_symbols_escapable TRUE #> 3 markdown angle_brackets_escapable FALSE #> 4 markdown ascii_identifiers FALSE #> 5 markdown auto_identifiers TRUE #> 6 markdown autolink_bare_uris FALSE #> 7 markdown backtick_code_blocks TRUE #> 8 markdown blank_before_blockquote TRUE #> 9 markdown blank_before_header TRUE #> 10 markdown bracketed_spans TRUE #> # ℹ 58 more rows pandoc_list_extensions(format = \"gfm\") #> # A tibble: 26 × 3 #> format extensions default #> #> 1 gfm ascii_identifiers FALSE #> 2 gfm autolink_bare_uris TRUE #> 3 gfm bracketed_spans FALSE #> 4 gfm definition_lists FALSE #> 5 gfm east_asian_line_breaks FALSE #> 6 gfm emoji TRUE #> 7 gfm fancy_lists FALSE #> 8 gfm fenced_code_attributes FALSE #> 9 gfm fenced_divs FALSE #> 10 gfm footnotes FALSE #> # ℹ 16 more rows pandoc_list_extensions(format = \"html\", version = \"nightly\") #> # A tibble: 17 × 3 #> format extensions default #> #> 1 html ascii_identifiers FALSE #> 2 html auto_identifiers TRUE #> 3 html east_asian_line_breaks FALSE #> 4 html empty_paragraphs FALSE #> 5 html epub_html_exts FALSE #> 6 html gfm_auto_identifiers FALSE #> 7 html line_blocks TRUE #> 8 html literate_haskell FALSE #> 9 html native_divs TRUE #> 10 html native_spans TRUE #> 11 html raw_html FALSE #> 12 html raw_tex FALSE #> 13 html smart FALSE #> 14 html task_lists FALSE #> 15 html tex_math_dollars FALSE #> 16 html tex_math_double_backslash FALSE #> 17 html tex_math_single_backslash FALSE"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"list-available-input-or-output-formats","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"List available input or output formats","title":"pandoc","text":"","code":"pandoc_list_formats(\"input\") #> # A tibble: 38 × 2 #> type formats #> #> 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 #> # ℹ 28 more rows pandoc_list_formats(\"output\") #> # A tibble: 61 × 2 #> type formats #> #> 1 output asciidoc #> 2 output asciidoctor #> 3 output beamer #> 4 output biblatex #> 5 output bibtex #> 6 output commonmark #> 7 output commonmark_x #> 8 output context #> 9 output csljson #> 10 output docbook #> # ℹ 51 more rows pandoc_list_formats(\"output\", version = \"nightly\") #> # A tibble: 66 × 2 #> type formats #> #> 1 output asciidoc #> 2 output asciidoc_legacy #> 3 output asciidoctor #> 4 output beamer #> 5 output biblatex #> 6 output bibtex #> 7 output chunkedhtml #> 8 output commonmark #> 9 output commonmark_x #> 10 output context #> # ℹ 56 more rows"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"list-available-highlight-style","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"List available highlight style","title":"pandoc","text":"","code":"pandoc_list_highlight_style() #> [1] \"pygments\" \"tango\" \"espresso\" \"zenburn\" \"kate\" #> [6] \"monochrome\" \"breezedark\" \"haddock\""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"list-supported-highlight-language","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"List supported highlight language","title":"pandoc","text":"","code":"pandoc_list_highlight_languages() #> [1] \"abc\" \"actionscript\" \"ada\" \"agda\" #> [5] \"apache\" \"asn1\" \"asp\" \"ats\" #> [9] \"awk\" \"bash\" \"bibtex\" \"boo\" #> [13] \"c\" \"changelog\" \"clojure\" \"cmake\" #> [17] \"coffee\" \"coldfusion\" \"comments\" \"commonlisp\" #> [21] \"cpp\" \"cs\" \"css\" \"curry\" #> [25] \"d\" \"default\" \"diff\" \"djangotemplate\" #> [29] \"dockerfile\" \"dot\" \"doxygen\" \"doxygenlua\" #> [33] \"dtd\" \"eiffel\" \"elixir\" \"elm\" #> [37] \"email\" \"erlang\" \"fasm\" \"fortranfixed\" #> [41] \"fortranfree\" \"fsharp\" \"gcc\" \"glsl\" #> [45] \"gnuassembler\" \"go\" \"graphql\" \"groovy\" #> [49] \"hamlet\" \"haskell\" \"haxe\" \"html\" #> [53] \"idris\" \"ini\" \"isocpp\" \"j\" #> [57] \"java\" \"javadoc\" \"javascript\" \"javascriptreact\" #> [61] \"json\" \"jsp\" \"julia\" \"kotlin\" #> [65] \"latex\" \"lex\" \"lilypond\" \"literatecurry\" #> [69] \"literatehaskell\" \"llvm\" \"lua\" \"m4\" #> [73] \"makefile\" \"mandoc\" \"markdown\" \"mathematica\" #> [77] \"matlab\" \"maxima\" \"mediawiki\" \"metafont\" #> [81] \"mips\" \"modelines\" \"modula2\" \"modula3\" #> [85] \"monobasic\" \"mustache\" \"nasm\" \"nim\" #> [89] \"noweb\" \"objectivec\" \"objectivecpp\" \"ocaml\" #> [93] \"octave\" \"opencl\" \"pascal\" \"perl\" #> [97] \"php\" \"pike\" \"postscript\" \"povray\" #> [101] \"powershell\" \"prolog\" \"protobuf\" \"pure\" #> [105] \"purebasic\" \"python\" \"qml\" \"r\" #> [109] \"relaxng\" \"relaxngcompact\" \"rest\" \"rhtml\" #> [113] \"roff\" \"ruby\" \"rust\" \"scala\" #> [117] \"scheme\" \"sci\" \"sed\" \"sgml\" #> [121] \"sml\" \"spdxcomments\" \"sql\" \"sqlmysql\" #> [125] \"sqlpostgresql\" \"stata\" \"tcl\" \"tcsh\" #> [129] \"texinfo\" \"toml\" \"typescript\" \"verilog\" #> [133] \"vhdl\" \"xml\" \"xorg\" \"xslt\" #> [137] \"xul\" \"yacc\" \"yaml\" \"zsh\""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"export-a-data-file","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"Export a data file","title":"pandoc","text":"","code":"outfile <- pandoc_export_data_file(file = \"styles.html\") #> ✔ Template written to styles.html outfile #> [1] \"styles.html\" readLines(outfile, n = 5) #> [1] \"$if(document-css)$\" #> [2] \"html {\" #> [3] \" line-height: $if(linestretch)$$linestretch$$else$1.5$endif$;\" #> [4] \" font-family: $if(mainfont)$$mainfont$$else$Georgia, serif$endif$;\" #> [5] \" font-size: $if(fontsize)$$fontsize$$else$20px$endif$;\""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"export-a-highlight-style-json-file","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"Export a highlight style JSON file","title":"pandoc","text":"","code":"outfile <- pandoc_export_highlight_theme(style = \"zenburn\") #> ✔ Style written to zenburn.theme outfile #> zenburn.theme readLines(outfile, n = 5) #> [1] \"{\" #> [2] \" \\\"text-color\\\": \\\"#cccccc\\\",\" #> [3] \" \\\"background-color\\\": \\\"#303030\\\",\" #> [4] \" \\\"line-number-color\\\": null,\" #> [5] \" \\\"line-number-background-color\\\": null,\""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"export-a-docx-or-pttx-reference-doc","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"Export a DOCX or PTTX reference doc","title":"pandoc","text":"","code":"ref_docx <- pandoc_export_reference_doc(type = \"docx\") #> ✔ Template written to reference.docx ref_docx #> reference.docx ref_pptx <- pandoc_export_reference_doc(type = \"pptx\") #> ✔ Template written to reference.pptx ref_pptx #> reference.pptx"},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"export-a-template-for-a-format","dir":"Articles","previous_headings":"Run Pandoc CLI from R > Various Wrapper functions around pandoc CLI","what":"Export a template for a format","title":"pandoc","text":"","code":"pandoc_export_template(format = \"jira\") #> $for(include-before)$ #> $include-before$ #> #> $endfor$ #> $body$ #> $for(include-after)$ #> #> $include-after$ #> $endfor$ outfile <- pandoc_export_template(format = \"latex\", output = \"default.latex\") #> ✔ Template written to default.latex outfile #> [1] \"default.latex\" readLines(outfile, n = 5) #> [1] \"% Options for packages loaded elsewhere\" #> [2] \"\\\\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}\" #> [3] \"\\\\PassOptionsToPackage{hyphens}{url}\" #> [4] \"$if(colorlinks)$\" #> [5] \"\\\\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}\""},{"path":"https://cderv.github.io/pandoc/dev/articles/pandoc.html","id":"helpers-to-easily-browse-pandocs-online-resources","dir":"Articles","previous_headings":"","what":"Helpers to easily browse Pandoc’s online resources","title":"pandoc","text":"pandoc_browse_*() helpers included quickly open online document like Pandoc MANUAL (pandoc_browse_manual()) documentation extensions (pandoc_browse_extension(\"smart\")). See reference doc .","code":""},{"path":"https://cderv.github.io/pandoc/dev/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Christophe Dervieux. Author, maintainer. . Copyright holder, funder.","code":""},{"path":"https://cderv.github.io/pandoc/dev/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Dervieux C (2024). pandoc: Manage Run Universal Converter 'Pandoc' 'R'. R package version 0.2.0.9001, https://cderv.github.io/pandoc/, https://github.com/cderv/pandoc.","code":"@Manual{, title = {pandoc: Manage and Run Universal Converter 'Pandoc' from 'R'}, author = {Christophe Dervieux}, year = {2024}, note = {R package version 0.2.0.9001, https://cderv.github.io/pandoc/}, url = {https://github.com/cderv/pandoc}, }"},{"path":"https://cderv.github.io/pandoc/dev/index.html","id":"pandoc","dir":"","previous_headings":"","what":"Manage and Run Universal Converter Pandoc from R","title":"Manage and Run Universal Converter Pandoc from R","text":"pandoc currently experimental R package primarily develop help maintainers R Markdown ecosystem. Indeed, R Markdown ecosystem highly dependent Pandoc (https://pandoc.org/) changes designed version independent possible. R Markdown best used latest Pandoc version rmarkdown package version work previous version Pandoc, new change Pandoc break rmarkdown features. explains needs focused tooling : Install manage several Pandoc versions. useful testing versions comparing . Call Pandoc’s command directly without layers added rmarkdown. useful debugging quickly iterating finding bug comes . Retrieve information Pandoc directly. version comes changes included binary. able retrieve information compare versions important help maintain user exposed tooling. package can also useful advanced developers working around Pandoc rmarkdown .","code":""},{"path":"https://cderv.github.io/pandoc/dev/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Manage and Run Universal Converter Pandoc from R","text":"Install CRAN: development version can install GitHub :","code":"install.packages(\"pandoc\") # install.packages(\"pak\") pak::pak(\"cderv/pandoc\")"},{"path":"https://cderv.github.io/pandoc/dev/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Manage and Run Universal Converter Pandoc from R","text":"functions prefixed pandoc_ find main usage. See Get started usage examples Reference page full details functions. functions follows following rules: prefixed pandoc_ . can used installed Pandoc version using version argument. Versions use passed string, either version number (e.g \"2.14.2\" ), one special alias (default, nightly , rstudio , system) . Available functions allows: pandoc_install(), pandoc_install_nightly(), pandoc_uninstall(), … pandoc_activate() , with_pandoc() , …. pandoc_installed_versions() , pandoc_installed_latest , pandoc::pandoc_is_installed() , pandoc_locate(), pandoc_available(), … See pandoc::pandoc_activate(rmarkdown = TRUE) Running Pandoc binary R, including version installed system-wise (pandoc_bin(\"system\")), version shipped RStudio (pandoc_bin(\"rstudio\")). pandoc_run() pandoc_version(), pandoc_list_extensions() , pandoc_export_template() , wrappers… pandoc::pandoc_browse_manual(), pandoc::pandoc_browse_extension() , ….","code":""},{"path":"https://cderv.github.io/pandoc/dev/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Manage and Run Universal Converter Pandoc from R","text":"See detailed examples Get started.","code":"library(pandoc) # Install version pandoc_install(\"2.7.3\") #> ✔ Pandoc 2.7.3 already installed. #> Use 'force = TRUE' to overwrite. pandoc_install(\"2.11.4\") #> ✔ Pandoc 2.11.4 already installed. #> Use 'force = TRUE' to overwrite. # Highest install is used pandoc_version() #> [1] '3.1.6'"},{"path":"https://cderv.github.io/pandoc/dev/index.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Manage and Run Universal Converter Pandoc from R","text":"Please note pandoc project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc-package.html","id":null,"dir":"Reference","previous_headings":"","what":"pandoc: Manage and Run Universal Converter 'Pandoc' from 'R' — pandoc-package","title":"pandoc: Manage and Run Universal Converter 'Pandoc' from 'R' — pandoc-package","text":"Provides set tools install, manage run several 'Pandoc' versions.","code":""},{"path":[]},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"pandoc: Manage and Run Universal Converter 'Pandoc' from 'R' — pandoc-package","text":"Maintainer: Christophe Dervieux cderv@posit.co (ORCID) contributors: Posit Software, PBC [copyright holder, funder]","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":null,"dir":"Reference","previous_headings":"","what":"Activate a specific Pandoc version to be used — pandoc_activate","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"function set specified version default version session. default, default active version recent one among installed version (nightly version excluded.)","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"","code":"pandoc_activate( version = \"latest\", rmarkdown = getOption(\"pandoc.activate_rmarkdown\", TRUE), quiet = FALSE )"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"version can either: \"latest\" latest release version number (e.g \"2.11.4\") specific version \"nightly\" last pandoc development built daily rmarkdown TRUE (default) rmarkdown available, also set pandoc version default one use rmarkdown calling rmarkdown::find_pandoc(). Default behavior can changed globally setting option pandoc.activate_rmarkdown. quiet TRUE suppress messages.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"invisibly, previous active version.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"special-behavior-in-an-interactive-session","dir":"Reference","previous_headings":"","what":"Special behavior in an interactive session","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"version activate yet installed, user prompted choose install version.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"default-active-version","dir":"Reference","previous_headings":"","what":"Default active version","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"package loaded, active version set first Pandoc binary found : latest Pandoc version installed package (e.g \"2.14.2\") version shipped RStudio IDE. (version = \"rstudio\") version available PATH (version = \"system\")","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_activate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Activate a specific Pandoc version to be used — pandoc_activate","text":"","code":"# activate version 2.18, including for use with rmarkdown package pandoc_activate(\"2.18\") #> ✔ Version '2.18' is now the active one. #> ℹ Pandoc version also activated for rmarkdown functions. # activate only for this package functions and not rmarkdown pandoc_activate(\"2.18\", rmarkdown = FALSE) #> ✔ Version '2.18' is now the active one."},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":null,"dir":"Reference","previous_headings":"","what":"Check if active Pandoc version meet a requirement — pandoc_available","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"function allows test active Pandoc version meets min, max requirement. See pandoc_activate() active version.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"","code":"pandoc_available(min = NULL, max = NULL)"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"min Minimum version expected. max Maximum version expected","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"logical. TRUE requirement met, FALSE otherwise.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"min max provided, check active version -two versions. non provided (keeping default NULL ), check active version return FALSE none active.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check if active Pandoc version meet a requirement — pandoc_available","text":"","code":"# Is there an active version available ? pandoc_available() #> [1] TRUE # check for a minimum requirement pandoc_available(min = \"2.11\") #> [1] TRUE # check for a maximum version pandoc_available(max = \"2.18\") #> [1] TRUE # only returns TRUE if Pandoc version is between two bounds pandoc_available(min = \"2.11\", max = \"2.12\") #> [1] FALSE"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available_releases.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch all versions available to install — pandoc_available_releases","title":"Fetch all versions available to install — pandoc_available_releases","text":"function fetch information Github https://github.com/jgm/pandoc available Pandoc versions released.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available_releases.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch all versions available to install — pandoc_available_releases","text":"","code":"pandoc_available_releases()"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_available_releases.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch all versions available to install — pandoc_available_releases","text":"character vector available release.","code":""},{"path":[]},{"path":[]},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":null,"dir":"Reference","previous_headings":"","what":"Get path to the pandoc binary — pandoc_bin","title":"Get path to the pandoc binary — pandoc_bin","text":"Get path pandoc binary","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get path to the pandoc binary — pandoc_bin","text":"","code":"pandoc_bin(version = \"default\") pandoc_bin_browse(version = \"default\")"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get path to the pandoc binary — pandoc_bin","text":"version Version use. Default \"default\" version. possible value version number e.g \"2.14.1\" nightly version called \"nightly\" latest installed version \"latest\" Pandoc binary shipped RStudio IDE \"rstudio\" Pandoc binary found PATH \"system\"","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get path to the pandoc binary — pandoc_bin","text":"Absolute path pandoc binary requested version.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Get path to the pandoc binary — pandoc_bin","text":"pandoc_bin_browse() allows open OS explorer folder pandoc_bin() , interactive mode .","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_bin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get path to the pandoc binary — pandoc_bin","text":"","code":"pandoc_bin() #> ~/.local/share/r-pandoc/2.18/pandoc pandoc_bin(\"2.18\") #> ~/.local/share/r-pandoc/2.18/pandoc pandoc_bin(\"nightly\") #> ~/.local/share/r-pandoc/nightly/pandoc pandoc_bin(\"rstudio\") #> NULL pandoc_bin(\"system\") #> /usr/bin/pandoc pandoc_bin_browse(\"2.18\") #> NULL"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_citation.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's documentation about citation processing — pandoc_browse_citation","title":"Open Pandoc's documentation about citation processing — pandoc_browse_citation","text":"Open Pandoc's documentation citation processing","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_citation.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's documentation about citation processing — pandoc_browse_citation","text":"","code":"pandoc_browse_citation()"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_citation.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's documentation about citation processing — pandoc_browse_citation","text":"Open webpage place regarding citation processing Pandoc.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_citation.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's documentation about citation processing — pandoc_browse_citation","text":"","code":"# \\dontshow{ withr::local_options(list(rlang_interactive = FALSE)) # } pandoc_browse_citation() #> ℹ Open URL #> https://pandoc.org/MANUAL.html#citations"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_exit_code.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's documentation about exit codes — pandoc_browse_exit_code","title":"Open Pandoc's documentation about exit codes — pandoc_browse_exit_code","text":"Open Pandoc's documentation exit codes","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_exit_code.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's documentation about exit codes — pandoc_browse_exit_code","text":"","code":"pandoc_browse_exit_code()"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_exit_code.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's documentation about exit codes — pandoc_browse_exit_code","text":"Open webpage place regarding exit code thrown Pandoc.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_exit_code.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's documentation about exit codes — pandoc_browse_exit_code","text":"","code":"# \\dontshow{ withr::local_options(list(rlang_interactive = FALSE)) # } pandoc_browse_exit_code() #> ℹ Open URL #> https://pandoc.org/MANUAL.html#exit-codes"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_extension.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's documentation about an extension — pandoc_browse_extension","title":"Open Pandoc's documentation about an extension — pandoc_browse_extension","text":"Open Pandoc's documentation extension","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_extension.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's documentation about an extension — pandoc_browse_extension","text":"","code":"pandoc_browse_extension(extension = NULL)"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_extension.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Open Pandoc's documentation about an extension — pandoc_browse_extension","text":"extension One supported extension. See pandoc_list_extensions(). Pandoc MANUAL concerns last released Pandoc's version, URL incorrect mean extensions changed.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_extension.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's documentation about an extension — pandoc_browse_extension","text":"Open webpage place regarding required extension.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_extension.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's documentation about an extension — pandoc_browse_extension","text":"","code":"# \\dontshow{ withr::local_options(list(rlang_interactive = FALSE)) # } pandoc_browse_extension() #> ℹ Open URL #> https://pandoc.org/MANUAL.html#extensions pandoc_browse_extension(\"auto_identifiers\") #> ℹ Open URL #> https://pandoc.org/MANUAL.html#extension-auto_identifiers"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's MANUAL — pandoc_browse_manual","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"Open Pandoc's MANUAL","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"","code":"pandoc_browse_manual(id = NULL)"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"id One id available HTML page (usually anchor link).","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"Open Pandoc's MANUAL","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"https://pandoc.org/MANUAL.html","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_manual.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's MANUAL — pandoc_browse_manual","text":"","code":"# \\dontshow{ withr::local_options(list(rlang_interactive = FALSE)) # } # open MANUAL home page pandoc_browse_manual() #> ℹ Open URL #> https://pandoc.org/MANUAL.html # open MANUAL at math part pandoc_browse_manual(\"math\") #> ℹ Open URL #> https://pandoc.org/MANUAL.html#math"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_option.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's documentation about a command line option — pandoc_browse_option","title":"Open Pandoc's documentation about a command line option — pandoc_browse_option","text":"Open Pandoc's documentation command line option","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_option.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's documentation about a command line option — pandoc_browse_option","text":"","code":"pandoc_browse_option(option = NULL)"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_option.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Open Pandoc's documentation about a command line option — pandoc_browse_option","text":"option One supported long form command line option. Pandoc MANUAL concerns last released Pandoc's version, URL incorrect mean option changed.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_option.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's documentation about a command line option — pandoc_browse_option","text":"Open webpage place regarding required option","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_option.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's documentation about a command line option — pandoc_browse_option","text":"","code":"# \\dontshow{ withr::local_options(list(rlang_interactive = FALSE)) # } pandoc_browse_option() #> ℹ Open URL #> https://pandoc.org/MANUAL.html##options pandoc_browse_option(\"embed-resources\") #> ℹ Open URL #> https://pandoc.org/MANUAL.html#option--embed-resources"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":null,"dir":"Reference","previous_headings":"","what":"Open Pandoc's release page in browser — pandoc_browse_release","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"Open Pandoc's release page browser","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"","code":"pandoc_browse_release(version = \"latest\")"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"version One pandoc release version number (e.g '2.11.2') \"latest\".","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"Open web page browser interactive mode print url","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"https://github.com/jgm/pandoc/releases","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_browse_release.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Open Pandoc's release page in browser — pandoc_browse_release","text":"","code":"if (FALSE) { # rlang::is_interactive() && rlang::is_installed(\"gh\") && attr(curlGetHeaders(\"https://github.com\"), \"status\") == \"200\" pandoc_browse_release() pandoc_browse_release(\"2.14\") }"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_citeproc_bin.html","id":null,"dir":"Reference","previous_headings":"","what":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","title":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","text":"function return path pandoc-citeproc available. work version Pandoc installed package.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_citeproc_bin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","text":"","code":"pandoc_citeproc_bin(version = \"default\")"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_citeproc_bin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","text":"version Version use. Default \"default\" version. possible value version number e.g \"2.14.1\" nightly version called \"nightly\" latest installed version \"latest\" Pandoc binary shipped RStudio IDE \"rstudio\" Pandoc binary found PATH \"system\"","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_citeproc_bin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","text":"path pandoc-citeproc binary exists. Since Pandoc 2.11, citeproc filter included Pandoc shipped binary filter.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_citeproc_bin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get path to the pandoc-citeproc binary. — pandoc_citeproc_bin","text":"","code":"if (FALSE) { # rlang::is_interactive() # Look into current active version pandoc_citeproc_bin() } # Look into a specific version pandoc_citeproc_bin(\"2.9.2\") #> ~/.local/share/r-pandoc/2.9.2/pandoc-citeproc"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_convert.html","id":null,"dir":"Reference","previous_headings":"","what":"Run Pandoc to convert a document or a text — pandoc_convert","title":"Run Pandoc to convert a document or a text — pandoc_convert","text":"Main usage Pandoc convert text format another. function just : converting file directly text writing file directly console","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_convert.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Run Pandoc to convert a document or a text — pandoc_convert","text":"","code":"pandoc_convert( file = NULL, text = NULL, from = \"markdown\", to, output = NULL, standalone = FALSE, args = c(), version = \"default\" )"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_convert.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Run Pandoc to convert a document or a text — pandoc_convert","text":"file, text One provided Format convert . must one format supported Pandoc. Default markdown. correspond --/-f CLI flag Format convert . must one format supported Pandoc. correspond --/-t CLI flag. output Pass path file write result Pandoc conversion file. corresponds --output/-o flag standalone appropriate header footer included ? corresponds --standalone/-s CLI flag args flag supported Pandoc CLI. See https://pandoc.org/MANUAL.html#options version Version use. Default \"default\" version. possible value version number e.g \"2.14.1\" nightly version called \"nightly\" latest installed version \"latest\" Pandoc binary shipped RStudio IDE \"rstudio\" Pandoc binary found PATH \"system\"","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_convert.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Run Pandoc to convert a document or a text — pandoc_convert","text":"output provided, absolute file path. , output pandoc binary run.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_convert.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Run Pandoc to convert a document or a text — pandoc_convert","text":"","code":"pandoc::pandoc_convert(text = \"_This will be emphasize_\", to = \"latex\") #> \\emph{This will be emphasize} pandoc::pandoc_convert(text = \"**This will be bold**\", to = \"html\", version = \"2.11.4\") #> This will be bold<\/strong><\/p>"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":null,"dir":"Reference","previous_headings":"","what":"Export Pandoc internal data file — pandoc_export_data_file","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"correspond --print-default-data-file CLI flag using also --output write export data file built Pandoc.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"","code":"pandoc_export_data_file(file, output = file, version = \"default\") pandoc_export_reference_doc(type = c(\"docx\", \"pptx\"), version = \"default\")"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"file One data file name included Pandoc (e.g reference.pptx, styles.html) output Path export file. Default working directory file name. version Version use. Default \"default\" version. possible value version number e.g \"2.14.1\" nightly version called \"nightly\" latest installed version \"latest\" Pandoc binary shipped RStudio IDE \"rstudio\" Pandoc binary found PATH \"system\" type one docx pptx depending reference doc export.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"output (invisibly) export done","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"pandoc_export_reference_doc() helper quickly get reference doc Word document (reference.docx) Powerpoint document (reference.pptx)","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_data_file.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Export Pandoc internal data file — pandoc_export_data_file","text":"","code":"if (FALSE) { # rlang::is_interactive() # \\dontshow{ withr::local_dir(withr::local_tempdir()) # } # export style.html file included in Pandoc HTML template pandoc_export_data_file(\"styles.html\", output = \"custom.html\") # export css file used for epub by default pandoc_export_data_file(\"epub.css\") } if (FALSE) { # pandoc::pandoc_available() && rlang::is_interactive() # \\dontshow{ withr::local_dir(withr::local_tempdir()) # } pandoc_export_reference_doc(\"docx\") pandoc_export_reference_doc(\"pptx\") } if (FALSE) { # pandoc::pandoc_is_installed(\"2.11.4\") && rlang::is_interactive() # \\dontshow{ withr::local_dir(withr::local_tempdir()) # } pandoc_export_reference_doc(\"pptx\", version = \"2.11.4\") }"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_highlight_theme.html","id":null,"dir":"Reference","previous_headings":"","what":"Export highlighting style as JSON file — pandoc_export_highlight_theme","title":"Export highlighting style as JSON file — pandoc_export_highlight_theme","text":"Pandoc highlighting can customize using JSON .theme file, passed --highlight-style= flag. function allows generate JSON version one supported highlighting style.","code":""},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_highlight_theme.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Export highlighting style as JSON file — pandoc_export_highlight_theme","text":"","code":"pandoc_export_highlight_theme( style = \"pygments\", output = style, version = \"default\" )"},{"path":"https://cderv.github.io/pandoc/dev/reference/pandoc_export_highlight_theme.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Export highlighting style as JSON file — pandoc_export_highlight_theme","text":"style One support highlighting style. (See pandoc_list_highlight_style()). output Path (without extension) export JSON .theme file. default, file located working directory named based parameter style (.e