assign_indexclass - add error checking for criteria columns

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating assign_indexclass in the R package and read how it checks criteria columns against the input data. Reproduce the issue by renaming a criteria column so it differs from the criteria data frame, then identify where the generic hard exit occurs. Done means mismatched columns produce a clean exit with a message explaining what is wrong.

Written by the indexing model from the issue text.

Description

Describe the bug
Fails when doesn't get expected columns for criteria.

To Reproduce
Rename criteria columns in data different from criteria data frame.

Expected behavior
Should get a clean exit and a message with what is wrong. Instead get a hard exit with a generic message (see image).

Screenshots
image

Additional context
NA

Dominant language
R
Stars
15
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from leppott/BioMonTools

All issues in leppott/BioMonTools

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.