pharmaverse / pharmaverse/rtables

Improve error messaging when wrong path is inserted

Open
#878 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement sme
Dominant language
R
Stars
260
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Every time I need to use pathing I get some errors that is very difficult to read.

e.g.

> facet_colcount(tbl, c("ARMCD", "*")) <- NA_integer_
Error in coltree_at_path(obj, path) : unable to match full path: ARMCD*
 path of last match:

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

Reproduce the R example using facet_colcount(tbl, c("ARMCD", "*")) <- NA_integer_ and trace the coltree_at_path(obj, path) error path. Improve the resulting message so the path mismatch and last matched path are easier to understand, then add or update a regression test for this example if the repository has one.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.