Warning messages - clean up

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the metric.values function and how it passes metric columns to reshape2::melt. The issue reports a second warning caused by all-NA fields being treated as logical; check how those fields are handled and compare the warnings on the example shown in the attached image. Done means the redundant warning is removed while the missing-column warning remains.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Clean up warning messages when have missing columns for metrics. The first warning is ok. The 2nd is a product of the first (All NA fields go to logical class). The 2nd is an issue with classes of columns and reshape2::melt.

Describe the solution you'd like
Probably check for an "logical" fields and convert to numeric before use reshape2::melt in metric.values function.

Describe alternatives you've considered
NA

Additional context

image

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.