Changelog
Source:NEWS.md
officerExtras (development version)
New features for existing functions
- Update
add_to_body()
to supportgt_tbl
table input to the value parameter. - Update
read_officer()
to return empty document (based on includedstyles_template.docx
file) ifallow_null = TRUE
and filename, path, and x all remainNULL
. - Update
officer_summary()
to return a tibble data frame (and add tibble to Imports). - Update
cursor_docx()
to use a default cursor position function if keyword, id, and index are allNULL
.
New functions
- Add new
vec_add_to_body()
function with optional.sep
parameter. - Add new
make_block_list()
,combine_blocks()
,officer_add_blocks()
, andadd_blocks_to_body()
functions. - Add new
add_list_to_body()
function. - Add new
combine_docx()
function. - Add new
use_doc_version()
function. - Export
is_officer()
andofficer_properties()
helper functions.
officerExtras 0.0.1
- Add new
officer_summary_levels()
andread_docs_url()
functions. - Add new features to
officer_tables()
function using thecol
,stack
,type_convert
, andnm
parameters partly inspired by blog post by Matt Dray.
officerExtras 0.0.0.9004
- Update
officer_media()
to supportrdocx
andrpptx
objects and fixoverwrite
check so the function errors if files already exist. - Add ggplot2 to Suggests (used in a test for
add_gg_to_body()
). - Add new
convert_docx()
function to support pandoc conversion forrdocx
objects and docx files (requires rmarkdown in Suggests). - Update
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.
officerExtras 0.0.0.9003
- Add support for writing custom lastModifiedBy property to
write_officer()
. - Add new functionality to
officer_summary()
to support layout and slide summaries. - Export
check_officer_summary()
helper function. - Add new
dims_docx_ext()
function wrappingofficer::docx_dim()
- Add
add_gg_to_body()
function wrappingofficer::body_add_gg()
officerExtras 0.0.0.9002
- Add support for
gt::as_word()
parameters toadd_gt_to_body()
. - Add support for “dotx” files to
read_officer()
- Fix error when
filename = NULL
forread_officer()
- Add
officer_properties()
,officer_tables()
, andofficer_media()
functions.
officerExtras 0.0.0.9001
- The main change in this update is that most functions now support the full range of officer class objects to work with pptx and xlsx as well as docx files.
read_docx_ext()
is now a wrapper for a more generalread_officer()
function.write_docx()
is replaced bywrite_officer()
- This update also includes two new functions that are vectorized versions of
add_to_body()
:add_value_with_keys()
andadd_str_with_keys()
. -
add_to_body()
has been updated with a few fixes and improvements making keyword, id, + index parameters optional and usingofficer::body_add_par()
by default notofficer::body_add()
(due to some odd error messages when using the latter and lack of support for the pos parameter). - Finally, test coverage is currently around 64% which is seems like a good start for a new package.
officerExtras 0.0.0.9000
Initial set up for package with functions including:
read_docx_ext()
write_docx()
-
add_to_body()
,add_text_to_body()
,add_xml_to_body()
, andadd_gt_to_body()
-
check_docx()
andcheck_docx_fileext()