Skip to content

[Bug]: Quality Control tab fails in RNA-seq app when testthat package is not installed #179

Description

@vedhav

What happened?

Both the stable and dev deployments of RNA-seq app show an error when testthat package is not available.

Screenshot 2024-08-12 at 7 29 48 PM Screenshot 2024-08-12 at 7 29 59 PM

It originates from the expect_proportion call from the hermes package

Before running the reprex please make sure that testthat is not installed.

library(checkmate)

check_proportion <- function(x, null.ok = FALSE) {
  ok <- test_number(x, lower = 0, upper = 1)
  if (!ok) {
    return("Must be a 'proportion': number between 0 and 1")
  }
  return(TRUE)
}

expect_proportion <- makeExpectationFunction(check_proportion)
expect_proportion(0.25)
#> Loading required namespace: testthat
#> Error in makeExpectation(x, res, info, label): Package 'testthat' is required for checkmate's 'expect_*' extensions with backend 'testthat'

Created on 2024-08-12 with reprex v2.1.0

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions