Skip to content

Releases: metrumresearchgroup/yspec

yspec 0.6.3

17 Jan 20:50
4c94419
Compare
Choose a tag to compare
  • Links in "regulatory" define pdf file generated by ys_document() now appear
    in default color (black) rather than previous magenta (#164).

  • Updates for compatibility with glue 1.8.0 (#162).

yspec 0.6.2

22 May 16:22
11c2ebc
Compare
Choose a tag to compare

Breaking changes

  • nm_input() was significantly refactored to produce output more typically seen
    in practice as well as adding some convenience features (#150).
    • the default output is now wide format
    • data set labels can get renamed with <new name> = <old name> syntax, passed
      under ...
    • columns with type <character> are dropped by default
    • the cat argument was renamed .cat
    • the .drop argument was added to indicate a group of data items to drop
      from the problem
    • the previous long output can be recreated using .long = TRUE
    • the .decodes argument was added to control appearance of categorical data
      decode information in the long output

yspec 0.6.1

14 Aug 15:56
76d18b5
Compare
Choose a tag to compare
  • Use all_of() when tidy selecting; this will suppress warnings in
    ys_extend() and ys_add_factors() (#145).

yspec 0.6.0

25 Jul 16:34
05be2a8
Compare
Choose a tag to compare
  • Adds ys_factors() to replace data set columns with their factor version,
    optionally retaining the orignal values in new columns (#141).

yspec 0.5.3

16 May 13:57
70903fe
Compare
Choose a tag to compare
  • Fix bug where character type was inferred whenever values were character,
    overrriding what the user specified; now, only infer when user doesn't
    specify type (#129).

  • Add ys_col_note() to generate a string of column names and definitions
    based on short or label; use this when column names appear in a table
    and require explanation in a a footnote (#119, #120).

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

yspec 0.5.2

17 Mar 15:56
abecbfe
Compare
Choose a tag to compare
  • Adds ys_extend() to extend a spec object with additional
    columns with any external yaml file; adds extend_file
    field in SETUP__: to identify a single file which can be
    automatically called upon for extension #112, #113.

  • ys_add_factors() refactored to only add factors for available
    columns #88, #91.

  • ys_add_factors() restores tidyselect semantics when specifying
    a subset of columns for adding factors #109, #110.

  • Add ys_table() to render the spec in TeX table code to be included
    in a report appendix #98, #104.

  • ys_select() returns an empty spec object when nothing is selected
    #100, #101.

  • Add ys_prune() to select any data columns that appear in the spec
    as well as other optional columns #87, #97. #99.

  • Add ys_recode() to convert a vector of data set column names to
    short version, optionally adding unit #86, #114.

  • ys_load() will now detect if values / decode are mis-coded as
    a list of lists; all items in values and decode must be atomic
    #106, #108.

  • ys_load() will issue more informative error message when short
    contains too many characters #102, 105.

  • ys_document() now accepts sponsor and projectnumber arguments
    which get passed through to the rendered define document #90, #92.

release/0.5.1

11 Sep 14:22
c8685ba
Compare
Choose a tag to compare

yspec 0.5.1

  • Fix bug where dots in lookup file were not properly inherited by spec
    columns that didn't already have a dots list (#69)

  • Fix bug in namespace creation when multiple fields include namespace info
    (#81)

  • Fix bug where specification document didn't properly render when using
    R 4.1 (#73)

  • ys_add_factors() now substitutes missing values (NA) with a character
    string supplied by the user prior to making the factor; the decode list
    is also updated so that the "missing" data is the last level; the string is
    supplied by the new argument .missing argument (#79)

Release/0.5.0

15 May 12:44
829756e
Compare
Choose a tag to compare
Merge pull request #67 from metrumresearchgroup/release/0.5.0

Release/0.5.0