file_extension: Parse the file extension for each R Markdown output format

Description Usage Arguments Details Value Examples

View source: R/report_interface.R

Description

Currently supports:

Usage

1
file_extension(file_type)

Arguments

file_type

R Markdown output formats.

Details

* rmdformats * prettydoc * bookdown * ioslides * tufte_html * xaringan * rolldown * flexdashboard * slidy_presentation * html_document * html_notebook * pagedown

Value

The file extension corresponding to the provided formats (".html", "pdf", ".md", ".docx", ".pptx")

Examples

1
file_extension(c('prettydoc', 'word_document', 'tufte_handout'))

chronicle documentation built on June 25, 2021, 9:09 a.m.