create_glossed_document {phonfieldwork} | R Documentation |
Create a glossed document
Description
Creates a file with glossed example (export from .flextext or other formats)
Usage
create_glossed_document(
flextext = NULL,
rows = c("gls"),
output_dir,
output_file = "glossed_document",
output_format = "html",
example_pkg = NULL
)
Arguments
flextext |
path to a .flextext file or a dataframe with the following
columns: |
rows |
vector of row names from the flextext that should appear in the final document. Possible values are: "cf", "hn", "gls", "msa". "gls" is default. |
output_dir |
the output directory for the rendered file |
output_file |
the name of the result |
output_format |
The option can be "html" or "docx" |
example_pkg |
vector with name of the LaTeX package for glossing
(possible values: |
Value
If render
is FALSE
, the function returns a path to
the temporary file with .csv file. If render
is TRUE
, there is
no output in a function.
Author(s)
George Moroz <agricolamz@gmail.com>