add_to_body()
to support gt_tbl
table input to the value parameter.read_officer()
to return empty document (based on included styles_template.docx
file) if allow_null = TRUE
and filename, path, and x all remain NULL
.officer_summary()
to return a tibble data frame (and add {tibble}
to Imports).cursor_docx()
to use a default cursor position function if keyword, id, and index are all NULL
.vec_add_to_body()
function with optional .sep
parameter.make_block_list()
, combine_blocks()
, officer_add_blocks()
, and add_blocks_to_body()
functions.add_list_to_body()
function.combine_docx()
function.use_doc_version()
function.is_officer()
and officer_properties()
helper functions.officer_summary_levels()
and read_docs_url()
functions.officer_tables()
function using the col
, stack
, type_convert
, and nm
parameters partly inspired by blog post by Matt Dray.officer_media()
to support rdocx
and rpptx
objects and fix overwrite
check so the function errors if files already exist.{ggplot2}
to Suggests (used in a test for add_gg_to_body()
).convert_docx()
function to support pandoc conversion for rdocx
objects and docx files (requires {rmarkdown}
in Suggests).add_gt_to_body()
to incorporate implementation from {gto}
(with better support to table captions) with credit to Ellis Hughes. Update required adding {xml2}
to Imports.write_officer()
.officer_summary()
to support layout and slide summaries.check_officer_summary()
helper function.dims_docx_ext()
function wrapping officer::docx_dim()
add_gg_to_body()
function wrapping officer::body_add_gg()
gt::as_word()
parameters to add_gt_to_body()
.read_officer()
filename = NULL
for read_officer()
officer_properties()
, officer_tables()
, and officer_media()
functions.read_docx_ext()
is now a wrapper for a more general read_officer()
function. write_docx()
is replaced by write_officer()
add_to_body()
: add_value_with_keys()
and add_str_with_keys()
.add_to_body()
has been updated with a few fixes and improvements making keyword, id, + index parameters optional and using officer::body_add_par()
by default not officer::body_add()
(due to some odd error messages when using the latter and lack of support for the pos parameter).Initial set up for package with functions including:
read_docx_ext()
write_docx()
add_to_body()
, add_text_to_body()
, add_xml_to_body()
, and add_gt_to_body()
check_docx()
and check_docx_fileext()