linesep argument to toString and related
functions renamed to hsepformatters to
>=0.3.0hsep argument to build_table which
sets the horizontal separator for the constructed table (and subtables
thereof)horizontal_sep and horizontal_sep<-
accessors for constructed tables, the latter of which is mandatorily
recursive.split_rows_by(var, child_labels="hidden") no longer
removes the structural subtable corresponding to levels of
var (#314)formatable dependency renamed to
formatters for suitability of release to CRANformatters (previously
formatable) to >=0.2.0path_enriched_df (which powers tsv export),
related to (#308)table_shell to display shell of table with
formatslinesep argument to toString to
specify a character to create the line separator. Previously we used the
en dash as the line separator character, now we changed the default to
the em dash reducing the gap between the dash line elements.NULL is now deprecatedinsert_rrow is deprecated in favor of new
insert_row_at_path and label_at_path<-
functions.spl_context optional argumenttrim_levels_to_map split function for dictating
exact combinations of values which should appear across splitsvalue_formats function now exported which
returns/displays the effective formats of all cells in a tablecompare_rtables is now much faster for tables
with many cellscompare_rtables now accepts structure
argument which adds comparison of structure (by way of row- and
column-path positions)tt_to_flextable coercion functionexport_as_pdf exporter functionvalue_at and cell_values functions now
have methods for TableRow objects making them usable in
sorting/pruning functionstrim_levels_to_map split function based on
wwojtek’s work in #203fnotes_at_path<- functiontrim_levels_in_group now trims empty levels of outer
(split) variable by defaultvalue_at and cell_values now work for
tablerow objectsas_html bug in multvar split columns caseas_html refactored to support newlines while respecting
table structuremake_row_df now
reflects extent in lines, thus will return larger values if the
row-label or any cell values contain newlines.as_html (or viewed in
Viewer) were missing the table class attribute (#194)vars_in_layout to list (explicitly named only)
variables used in a layoutSynchronize release with GitHub commit sha.
Documentation revisions as requested by CRAN. No change to package code.
Documentation-text only changes to introduction vignette to pass CRAN’s URL checks. All package, example, test, and vignette code fully identical to that in tagged github release 0.3.4
Minor changes to the 0.3.3 version in order to submit rtables to CRAN.
This version completely refactors the rtables package.
We do provide a backwards compatibility layer with the
rtable, rcell, rrow,
rheader, and rtabulate family of functions.
However the table data structure and main tabulation framework have
changed. We provide extensive documentation in the manuals
help(package = "rtables") and vignettes
vignette(package = "rtables") of the package.
The changes to rtables have been undertaken to better
meet the requirements of creating and analyzing & reporting tables
in the context of clinical trials.
make_afun now force()s all customization
arguments immediately, which prevents problems when called within
loop/lapply constructs.analyze_colvars’s inclNAs argument now
respected.make_pagdfmake_pagdf indent
calculation remains correct.in_ref_col and .ref_group work correctly when
custom splitting is used (including the provided combination-levels
mechanism)split_cols_by_multivarsummarize_row_groups can now accept a list of functions
for the cfun argument as analyze_colvars
does.value_formats accessor so it operates on
CellValues rather than the raw contained values (thus always returning
NULL)rrow constructor no longer interpretes cell formats a
row format when they are the same across all cells. Fixes bug in
“correct way” code discussed in #112in_rows as cell formats
rather than row formats.analyze_colvarsanalyze_colvars now takes and adheres to
inclNAs argumentxx.xx (xx.xx - xx.xx) and
x.xxxx | (<0.0001)col_by in rtabulate now accepts matrices:
col_by_to_matrix, col_by_to_factor,
by_factor_to_matrix.by_add_total, by_all,
by_combine, by_quartile,
by_compare_subset, by_hierarchical,
by_drop_empty_cols.label, var_labels<-,
var_labels, var_labels_remove,
var_relabel, with_label.cbing_rtables.empty_rtables, is_empty_rtable,
is_non_empty_rtable, is_rtable.header_indent, header_indent<-,
header_row.names, header_row.names<-.insert_rrow.rbind.rtable now supports binding rtables with rows,
e.g. rbind(tbl1, rrow(), tbl2) or
rbind(tbl1, rrow("row name"), tbl2).rbindl_rtables supports NULL objects in
the list (except for the first element).indent function.header_add_N deals gracefully with NULL
objects.rtablulate family of functions do not support the
row_*_data_args arguments anymore. Instead, the
col_wise_args argument is introduced.order_rrows, sort_rrows,
order_rtables, and sort_rtables are
introduced.rtables from being unlisted with
unlist.rtables.Viewer now also accepts objects of class
shiny.tag (defined in package htmltools).as.html accepts class.table,
class.tr, class.th, and class.td
as an argument.sprintf_format for formatting rcells (thanks to
Doug Kelkhoff for the suggestion)."(N=xx)" and ">999.9" format
labels.rtabulate has now an argument col_N and
the function col_N().0.1.0 is a major re-design with lots of
internal refactoring and the following API changes:
rtable has now header argument
instead of col.names. A header can be created
with rheader and is a collection of rrows. If
header is set to c("A", "B") then
rtable will create the rheader with a single
rrow and by setting row.name to
NULL.header and header<- function
added.get_rcell_formats to
list_rcell_format_labels.rcell format is NULL then the cell
content will be converted to a string with
paste(as.character(x), collapse = ', ').[i,] works now to subset a table.rbind method for rtables.row.names<-.rtable method.rtabulate added for creating tables.indented_row.names function added.