Creates a file with glossed example (export from .flextext or other formats)
create_glossed_document( flextext = NULL, rows = c("gls"), output_dir, output_file = "glossed_document", output_format = "html", example_pkg = NULL )
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: |
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.