Skip to content

Releases: metrumresearchgroup/pmtables

pmtables 0.8.1

23 Oct 18:22
267f67a
Compare
Choose a tag to compare

Bugs Fixed

  • Fixed a bug in preview helpers (st_as_image() and st2report()) where
    a list was getting passed as .envir to glue::glue() rather than an
    environment; this was causing glue::glue() to fail after changes rolled out
    in glue version 1.8.0 (#346).

pmtables 0.8.0

21 Jun 19:36
6295709
Compare
Choose a tag to compare
  • New functionality to include output file path information in the table
    annotation (#341).
scores:
{
  "testing": {
    "check": 1,
    "covr": 0.9262
  },
  "documentation": {
    "has_vignettes": 0,
    "has_website": 1,
    "has_news": 1
  },
  "maintenance": {
    "has_maintainer": 1,
    "news_current": 1
  },
  "transparency": {
    "has_source_control": 1,
    "has_bug_reports_url": 1
  }
}

pmtables 0.7.0

07 Jun 12:37
ff81004
Compare
Choose a tag to compare
  • New functionality to create table notes from glossary files (#326).
    • read_glossary() reads from .tex or .yaml formatted files, returning a
      glossary object
    • select_glossary() selects specific entries from a glossary object
    • as_glossary() creates a glossary object on the fly or from a list
    • glossary_notes() creates notes from a glossary object, a list, or the
      name of a glossary file
    • st_notes_glo() creates and and attaches notes to a table in a pipeline
  • stable_save_image() added to create an image from a table and save to a
    specific location; this builds on [st_aspdf()] and st_aspng() and
    adding convenient syntax and options (#333).
  • The maxex argument to sig() can now be set through the pmtables.maxex
    option (#328).
scores:
{
  "testing": {
    "check": 1,
    "covr": 0.9263
  },
  "documentation": {
    "has_vignettes": 0,
    "has_website": 1,
    "has_news": 1
  },
  "maintenance": {
    "has_maintainer": 1,
    "news_current": 1
  },
  "transparency": {
    "has_source_control": 1,
    "has_bug_reports_url": 1
  }
}

pmtables 0.6.0

14 Aug 16:21
5389a4b
Compare
Choose a tag to compare
  • st_caption() function added to associate a caption (including short
    caption and possibly a label) to any table; captions will appear in
    st2report() outputs; captions will always be written to file for
    stable_long outputs and can be optionally written to file for stable
    outputs (#313).

  • yaml_as_df() will now retain row names in a column named by the new argument
    row_var (#317).

  • st_align(), st_left(), st_right() and st_center() can now be called
    multiple times in a pipeline, supported by new update method for aligncol
    objects (#315).

  • st_clone() function added to make a copy of stobject objects (#314).

  • The id_col argument to pt_cont_long() and pt_cont_wide() is
    deprecated (#305).

Bugs Fixed

  • Fixed bug where sumrows was not recognized as a valid field in stobject
    objects (#312).

pmtables 0.5.2

14 Dec 16:49
4f21317
Compare
Choose a tag to compare

pmtables has been updated to be compatible with stringr 1.5.0, which changed the classes of pattern modifiers (#302).

pmtables 0.5.1

19 Aug 15:07
7c1c692
Compare
Choose a tag to compare
  • New function st_filter() to filter data item in a pipeline (#298).

  • Add summarize_all and all_name_stacked arguments to
    pt_data_inventory() (#297).

Bugs Fixed

  • Fixed bug where all_name was not getting used in pt_data_inventory()
    (#297).

  • Fixed bug where detached table notes were getting rendered too close to the
    main table when building standalone pdf under certain TeX distributions
    (#286).

pmtables 0.5.0

16 May 13:56
f3623bd
Compare
Choose a tag to compare
  • New functions st_as_image(), st2pdf(), and st2png() to render tables with
    TeX to either pdf or png format; image files may be kept on disk
    or read back for display while knitting; pdflatex system dependency for
    pdf images and latex + dvipng for png images; additional Suggested
    packages include magick and pdftools (#277, #278).

  • sig() now returns character when integer type is passed (#272).

  • st_new() is now generic with dispatch for data.frame and objects with
    class pmtable; most pipeline functions can now be used to customize
    tables coming from pt_cat_*, pt_cont_*, pt_demographics() and
    pt_data_inventory() (#274).

  • New functions st_notes_detach(), st_notes_rm(), st_notes_app(),
    st_notes_str(), st_notes_sub() and st_notes_conf() to help working
    with table notes in a pipe context (#274).

  • st_span() and st_span_split() accept align argument to push column
    spanner titles to the left, right or center (default); the argument eventually
    gets passed to colgroup() (#261).

  • pt_cat_wide(), pt_cat_long() and pt_demographics() gain argument
    denom to alter the denominator when calculating percents for categorical
    data summaries (#268).

  • pt_cat_wide() gains argument complete to display missing levels of
    by and panel (#268).

  • Put stories in yaml format; add script to build validation docs from the
    yaml file (#269, #270).

pmtables 0.4.1

17 Mar 16:01
cb6ae78
Compare
Choose a tag to compare
  • colgroup() (and st_span()) gains an align argument to position
    the spanner title on left or right in addition to the center (default)
    #260, #261.

  • rowpanel() (and st_panel()) gains jutargument to push non-panel
    table contents to the right relative to the panel header row so that
    contents under the panel header are indented #251, #253.

  • Panel header rows are now modified so that the header row stays
    with the first non-header row for longtable output #252, #253.

  • Consistent BQL / BLQ handling for column titles and table
    notes for pt_data_inventory() #254, #255.

release/0.4.0

11 Sep 14:24
51fb699
Compare
Choose a tag to compare

pmtables 0.4.0

  • Add cols_omit option to omit column header data (#213)

  • Add pt_demographics function to generate a new table of both continuous and
    categorical data (#186, #249)

  • Add title_side argument to colsplit() so that the title can be taken from
    left or right side of split (#231)

  • Add hline argument to rowgroup() constructor to make the horizontal line
    above the panel data optional (#215)

  • Refactor pt_data_inventory() to calculate percent BLQ using denomninator
    that is the sum of the number of observations BLQ and non-BLQ / non-missing
    (#221, #222)

  • st_asis() gains a method for pmtable objects (#236)

  • List names are now escaped when passing a list of tables to st2report()
    and friends (#232)

  • Add newline after printing table text using st_asis() (#224)