Releases: metrumresearchgroup/pmtables
pmtables 0.8.1
Bugs Fixed
- Fixed a bug in preview helpers (
st_as_image()
andst2report()
) where
a list was getting passed as.envir
toglue::glue()
rather than an
environment; this was causingglue::glue()
to fail after changes rolled out
in glue version 1.8.0 (#346).
pmtables 0.8.0
- 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
- New functionality to create table notes from glossary files (#326).
read_glossary()
reads from.tex
or.yaml
formatted files, returning a
glossary objectselect_glossary()
selects specific entries from a glossary objectas_glossary()
creates a glossary object on the fly or from a listglossary_notes()
creates notes from a glossary object, a list, or the
name of a glossary filest_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()]
andst_aspng()
and
adding convenient syntax and options (#333).- The
maxex
argument tosig()
can now be set through thepmtables.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
-
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 forstable
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()
andst_center()
can now be called
multiple times in a pipeline, supported by new update method foraligncol
objects (#315). -
st_clone()
function added to make a copy ofstobject
objects (#314). -
The
id_col
argument topt_cont_long()
andpt_cont_wide()
is
deprecated (#305).
Bugs Fixed
- Fixed bug where
sumrows
was not recognized as a valid field instobject
objects (#312).
pmtables 0.5.2
pmtables has been updated to be compatible with stringr 1.5.0, which changed the classes of pattern modifiers (#302).
pmtables 0.5.1
pmtables 0.5.0
-
New functions
st_as_image()
,st2pdf()
, andst2png()
to render tables with
TeX to eitherpdf
orpng
format; image files may be kept on disk
or read back for display while knitting;pdflatex
system dependency for
pdf
images andlatex
+dvipng
forpng
images; additional Suggested
packages includemagick
andpdftools
(#277, #278). -
sig()
now returns character when integer type is passed (#272). -
st_new()
is now generic with dispatch fordata.frame
and objects with
classpmtable
; most pipeline functions can now be used to customize
tables coming frompt_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()
andst_notes_conf()
to help working
with table notes in a pipe context (#274). -
st_span()
andst_span_split()
acceptalign
argument to push column
spanner titles to the left, right or center (default); the argument eventually
gets passed tocolgroup()
(#261). -
pt_cat_wide()
,pt_cat_long()
andpt_demographics()
gain argument
denom
to alter the denominator when calculating percents for categorical
data summaries (#268). -
pt_cat_wide()
gains argumentcomplete
to display missing levels of
by
andpanel
(#268). -
Put stories in yaml format; add script to build validation docs from the
yaml file (#269, #270).
pmtables 0.4.1
-
colgroup()
(andst_span()
) gains analign
argument to position
the spanner title on left or right in addition to the center (default)
#260, #261. -
rowpanel()
(andst_panel()
) gainsjut
argument 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 forpt_data_inventory()
#254, #255.
release/0.4.0
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 tocolsplit()
so that the title can be taken from
left or right side of split (#231) -
Add
hline
argument torowgroup()
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 forpmtable
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)