pharmaverse / pharmaverse/tern

Possible bug in rare format cases

Open
#1,409 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug sme
Dominant language
R
Stars
106
Forks
34
Avg merge
8d 9h
Merged PRs (30d)
6

Description

          for me it bugs:
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 16 ]

── Error (test-count_cumulative.R:163:3): Testing label behavior when s_* forecasts label attributes ──
Error in `format_value(rawvalues(x), format = format, output = output, 
    na_str = na_str)`: Unknown format label: 'a'. Run `list_valid_format_labels()` to get a list of all available formats.

But we can fix this if it ever surfaces again or if we get there some day in the future

Originally posted by @Melkiades in https://github.com/insightsengineering/tern/pull/1403#discussion_r1987557643

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test-count_cumulative.R at line 163 and reproduce the failure in the label-behavior test. Read format_value and list_valid_format_labels() to determine why format label 'a' is rejected; done means the test passes with the intended label behavior, though the issue does not specify the expected fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.