get_reference_docx: Return reference docx file whose name matches current output...

View source: R/utils.R

get_reference_docxR Documentation

Return reference docx file whose name matches current output file.

Description

Return reference docx file whose name matches current output file.

Usage

get_reference_docx(out_file, style_dir)

Arguments

out_file, style_dir

The output file and reference directory passed to a write_* function (e.g., make_requirements()).

Value

The full path of the reference docx within style_dir with the same name as out_file; if such a file doesn't exist, return the default value reference_docx value of rmarkdown::word_document().


metrumresearchgroup/mrgvalidate documentation built on March 4, 2023, 7:54 a.m.