Patch release for latest {gt} release and upcoming {purrr} and{stringr} releases: * Ensurerowname_col = NULL ingt() withinprint_to_gt() if no row labelexists. * Use ofseq_along(x) in lieu of1:length(x) prior tostr_replace() as it nolonger accepts NA patterns. * Ensure values are character beforeprocessing viamap_chr() as it no longer coerces tocharacter.
shuffle_card(), which prepares acard ARD object for analysis.prep_...() functions to reduce the manualprocessing required for acard ARD object once it has beenshuffled. (#509,prep_combine_vars(): useful for combining sparselypopulated columns into a single one.prep_big_n(): useful when the tfrmt contains a bigNstructure. It recodes the"n"stat_name into"bigN" for the desired variables.prep_label(): combinesstat_label andvariable_level for categorical (or categorical-like)variables.prep_hierarchical_fill(): does a pair-wise replacementof missing values (NAs) in one column based on anothercolumn. It can replaceNA either with a predeterminedvalue, with the value of the other column in the pair, or with a {glue}expression.*_structure functions did not correctlyparse strings containing quotes in some cases. (#466)col_style_plan in the creationof mock data.frmt_when droppedquotes from stringsdplyr::summarise()body_plan may error if thegrouping variable is a factorfrmt_combine couldn’t processvariable names surrounded by backticksrow_grp_plan post space did notrespectcol_style_plan widths by adding newfill argument toelement_block. Thefill argument controls whether post space values should berecycled for the cell’s data width. For example, a cell width of 3 willbe respected by the post space with the following syntax:element_block(post_space = "---", fill = FALSE).border argument inelement_block.row_grp_plan splits on all groupingvariables, even if not mentioned. Instead, the logic has been updated tosplit on those explicitly mentioned, similar topage_plan.unicode_ws argument added toprint_to_gt() andprint_mock_gt(). Thisdefaults toTRUE but should be set toFALSEfor RTF outputs (until {gt} bug is resolved).make_mock_data could result induplicate rowscol_style_plan). Alignment options now fall into two types:character (type = “char”) and positional (type = “pos”). Positionalalignment is new and allows for aligning across multiple positions.page_plan for splitting tables across multiplepagescol_planrow_grp_plan thatstoresrow_grp_structures has been changed from “struct_ls”to “struct_list” to be consistent with other objects. This may impactcompatibility with JSON files created using prior versions of{tfrmt}.frmt_combine no longer throws error if group variableis named “var”row_grp_plan with post-space no longer throws error ifcharacter column contains NA valuesfrmt()NEWS.md file to track changes to thepackage.