- Export
mf_col_widthsaccessor (getterandsetter).
- Added
"default"format label which behaves like"xx"informat_valuebut indicates formatting behavior can be inherited from parent structures in upstream code. round_type = "sas"no longer displays a negative sign when negative values are rounded to zero.- Added new
round_type,"iec_mod". Provides IEC style rounding but will not display negative sign when rounding to zero. - New exported
valid_round_typeobject for use as default value/withmatch.argin upstream packages. - New
obj_round_typeandobj_round_type<-generics for objects which carry around a round_type. - Updated default round type value to retrieve the object's round type for all generics and relevant methods which accept round_type.
- Fixed a bug in
mform_handle_newlinesthat caused string matrix column names to be removed. This prevented paginated listing key column info from being repeated when vertically spanning multiple pages. - Fixed a minor bug with the
paginateargument in theexport_as_rtffunction. - Added
round_typeargument to indicateIEC(default) orSAS(nearest value, 5 goes up) rounding to all formatting machinery. - Added support for new 2- and 3-d formats.
- Fixed a bug in
mf_update_cinfocausing an error whenexport_as_txtwas applied to empty listings. - Fixed a bug in
mform_handle_newlinesthat did not allow printing to console a table that has top left information, new lines in the column names and contained only one row. - Fixed a bug in
mform_handle_newlinesthat did not allow for empty strings to be present in top left information. - Fixed a bug with top left information not being printed when more lines are present than header lines.
- Fixed bug in
format_valuethat caused multipleNAvalues to be associated with the wrongna_strvalues.
- Added
TrueTypefont support to pagination and word-wrapping machinery by @gmbecker. - Fixed a bug where
col_gapwas not correctly taken into account during horizontal pagination (#249) by @gmbecker. - Improved clarity of error messages returned by
format_value.
- Added
lifecyclebadge files for documentation. - Fixed a bug causing recursive appending of page number text during pagination.
- Deprecated
width,heightandfontsizearguments ofexport_as_pdf()usinglifecyclepackage.
- Added "N=xx" format and unit test for it.
- Added error catch for
\rrecursive special character. - Fixed pagination unexpected counts for
rlistings' pagination by removing the manual subsetting workaround and fixinginsightsengineering/rlistings#155. - Fixed mismatch between pagination and exports regarding the value assigned to parameter
max_width. Introduced general handler.handle_max_widthfor pagination, exports, andtoString. - Fixed bug in
format_valuecausing a warning for vectors containing both NA and non-NA values. - Fixed issue with
var_labelassignment that needed to be of non-named strings. - Included indentation and split rows with their
LabelRowassignment inbasic_matrix_form. - Allowed tables with content rows in the end be exported.
- Moved new line expansion for decorations from
rtables'matrix_formtoformatters' constructorMatrixPrintFormso to cover alsorlistings. - Improved relevant information feedback during pagination.
- Updated
export_as_txtto allow lists of tables/listings as input. This enables listing pagination with pages by parameter. - Removed the possibility of setting
min_siblings > 0when dealing with listings. This allows smooth pagination when there are only 2 lines. - Removed redundant references to
matrix_print_formconstructor (now onlyMatrixPrintForm).
- Applied
stylerand resolved package lint. Changed default indentation from 4 spaces to 2. - Added the possibility of setting a general default using
set_default_hsep()that sets up the optiongetOption("formatters_default_hsep"). - Allowed section divider between header and table body.
- Added support for combining duplicate referential footnotes.
- Migrated
export_as_pdffromrtables. Now usingpaginate_to_mpfsfunction. Madefont_lcpifunction internal. - Fixed wrapping and section dividers error.
- Fixed infinite loop in
wrap_stringthat was caused by a bug instringi::stri_wrapnot wrapping small strings with dots and spaces correctly.
- Fixed a bug in
paginate_to_mpfs()so that formatting in listings key columns is retained with paginationinsightsengineering/rlistings#155. - Improved error message for pagination when
cpporlppis too small in comparison to the column or row widths. - Added full support of newline characters in any part of
rtablesobjects. - Modified default vertical alignment for top left information to bottom.
- Rework of
wrap_stringso to allow space characters to be used and wrapped.
- Decimal alignment now throws informative error if scientific notation is used.
- Specified minimal version of package dependencies.
- Updated hex sticker logo.
paginate_to_mpfscan handle single column tables and listings.- Added decimal alignment support with
decimal,dec_right, anddec_left. - Updated
export_as_txtto passrep_colsargument to pagination function. - Added
list_valid_aligns()that lists the available alignments. - Set default values for
na_strandaligntoNULLin the format configuration functionfmt_config. - Fixed a bug that threw warning when
prov_footerlength is greater than1insightsengineering/rtables#705.
- Updated
export_as_txtto print split label when usingpage_bywith only one level. - Reduced the amount of spelling issues.
- New generic
getterandsetterforalign(obj_alignandobj_align<-). - New
fmt_configclass to bundle togetherformat,na_str, andaligninstructions. - Reverting default for alignment (from
NULLtocenter) andna_strfromNULLto"NA". This affects onlyrlistings, where the new default takes effect.
- Fix bug in
MPFpagination (and thus export_as_txt) when column labels had newlines (#150,insightsengineering/rtables#634) font_sizeis now 8 consistently across the pagination machinery.- When specified, margins are in inches (including the default).
- Fix off-by-one error in pagination machinery for certain cases.
- Refined informative messages when pagination is verbose (
verbose = TRUE). - Referential footnotes with specified (non-number) symbols are now printed once per page regardless of the number of elements on the page they refer to.
- New
export_as_txtfunction operates now on any object with an applicablematrix_formmethod (including pagination). - New
paginate_indicesandpaginate_to_mpfsfunctions. - New
diagnose_paginationfunction accepts the same arguments aspaginate_to_mpfsand returns information about the pagination algorithm outcome at both row and column positions. MatrixPrintFormobjects now pay closer attention to referential footnote information than they did in the past.MatrixPrintFormobjects infer detailed referential footnote information from theirstringselement for backward compatibility.- Fix to test that failed on old Windows CRAN machine due to imperfect UTF support there.
- If
lppandcppin pagination or exporter functions are assigned toNULL, no pagination in the vertical or horizontal direction happens, respectively. - The new default of
NA_integer_forlppandcppnow means those values should be inferred from page size. - Added
hexStickerlogo.
- Cell values and row labels are now word-wrapped based on column widths (
widthsintoStringandcolwidthsin pagination and exporters. - New "N=xx (xx%)" format support (insightsengineering/rtables#516).
- New generic
getterandsetterforna-string (obj_na_strandobj_na_str<-, migrated fromrtables). MatrixPrintFormclass now carries aroundhas_topleftinformation explicitly,gettermf_has_topleft.- Number of header lines in a
MatrixPrintFormobject (mf_nlheader) is now a computed attribute rather than a stored one,mf_nlheader<-has been removed. - New
MatrixPrintFormaccessor:mpf_has_rlabelsdetermines whether theMPF$stringshas a column which are label rows (i.e. no column index in originating object). wrap_textandwrap_stringnow accept thehardargument (defaultFALSE) indicating whether 'hard' word-wrapping (i.e. explicit embedding of newline characters) should be performed.vert_pag_indicesnow acceptsrep_colsto control how many columns act as 'row-label-like', as required byrlistings.- Documentation of pagination algorithm greatly expanded.
- Pagination with
verbose = TRUEis now significantly more informative. - fix bug where indenting was not correct when row-labels were word wrapped (#84, #85).
- fix bug where portions of table after last section div (e.g., non-nested further analyses) were omitted (#77).
- fix bug in
mf_rinfo<-checked the new value against the wrong dimensions. - Fixed off-by-one error in basic pagination machinery.
- Fix bug in position of header separator when columns have word wrapping (#68).
- Bug rendering
mf_lgroupingnon-functional has been fixed.
nlinesnow accepts bothcolwidthsandmax_width, defaulting toNULLfor bothpag_indices_inner,find_pagandvalid_pagnow accepthave_col_fnotesanddiv_heightarguments- fix bug which lead to
insightsengineering/rtables#414(nlines("", <non-null>)threw an error - paginate related generics now accept max_width for use in ensuring pagination now takes word wrapping into account for titles and footers.
nlinescharacter method has changed, not takes the sum of thenlinesof its elements instead of the max in the case of a vector of length > 1- new
wrap_title_footerfunction for use on everything which implements the generic interface we design. - export new
page_dimfunction which returns values of page dims for a named type. tf_wrapfunctionality now breaks up words that are too large with respect to surrounding word wrapping.tf_wrapbehavior no longer emits a warning when breaking up 'words' larger thanmax_widthtf_wrapmax_width = "auto"now sets themax_widthtosum(widths) + table_inset(x)instead ofsum(widths)- Experimental
tf_wrapfunctionality added totoStringMatrixPrintFormmethod MatrixPrintFormclass now includes atable_insetelement- Add
table_insetandtable_inset<-generics now exported toStringnow respectstable_insetvalues set on aMatrixPrintFormobject- Use
exact=TRUEfor all calls toattrin accessor functions. - length-zero values of
na_strare now silently interpreted as the default value ("NA"), as are any missing values inna_strof length > 0. - adding wrapping of titles, subtitles, and footers.
page_lcppfunction now provided to map page size and font combinations to lines and characters per page.gettersandsettersfor the components ofMatrixPrintFormobjects are now exported (i.e.,mf_spansand friends).na_strcan now be length >1, and is matched in position to NAs in that case.format_valuenow returns solely thena_strvalue when all-NA values are formatted with certain formats (currently"(N=xx)",">999.9",">999.99","x.xxxx | (<0.0001)")
vert_pag_indicesnow acceptscolwidthsargument
label_vars<-now correctly adheres to names of value, even in different order thannames(x). Fixesinsightsengineering/rlistings#8
vert_pag_indicesnow acceptscolwidthsargument
- fix regression caused by
0.3.2.2invert_pag_indiceswhenobjis not aMatrixPrintFormobject
- Added support for
trailing_sepcolumn to row_info data.frames (e.g,pagdfrowconstructor) trailing_sepinfo now used in both printing and paginationcol_gapis now an element ofMatrixPrintFormobjectsvert_pag_indicesfixed to correctly take gap between printed columns into account
- calling
var_labelson a data.frame with no columns is no longer an error (insightsengineering/rtables#224)
- Change warning when non-UTF line separator default is used to message, and displays it only during interactive sessions (once per session).
- Released on CRAN
- add exported
default_hsepfunction for use her and in reverse-dependencies (inclrtables) - format_value now respects
na_streven when format isxx(previously it returned"NA"always) - rename
linesepargument tohsepintoStringgeneric signature - add
indent_sizeargument tomatrix_formgeneric signature - add a number of
"__ (__)"(no pct) formats in response to #23 - Switch to
testthatas testing framework
- Updated Documentation
- Released on CRAN
- Fix regression in support for new lines in columns in
rtables
- Add
formatsargument to matrix_form informal class/constructor for use inrtables::table_shell