Skip to content

Commit

Permalink
tests: analysis3.yml: fix BLQ value
Browse files Browse the repository at this point in the history
yspec 0.5.2 now errors for miscoded values.  From its NEWS:

    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

This leads to two pmforest test failures with errors like this:

    Error (test-base-plot.R:6:1): (code run outside of `test_that()`)
    Error: invalid column data
    In file: analysis3.yml
     column: BLQ
       - values field includes non-atomic data ...
       - yaml code possibly used brackets [ ] when braces { } were
       intended

    [...]
     7. yspec:::.stop("invalid ", context, " data\n", file, "\n", err)
          at yspec/R/load_spec.R:139:2

Adjust the BLQ value to have the correct coding (see
<metrumresearchgroup/yspec#108>).
  • Loading branch information
kyleam committed Mar 18, 2022
1 parent df299ce commit 83c7663
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inst/test-data/spec/analysis3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ LDOS:
MDV:
BLQ:
short: below limit of quantification
values:
- above QL: 1
- below Q: 0
values: {above QL: 1, below Q: 0}
PHASE:
short: study phase indicator
values: 1
Expand Down

0 comments on commit 83c7663

Please sign in to comment.