Skip to content

fix: resolve gDRstyle linting violations#59

Open
bczech wants to merge 3 commits into
mainfrom
GDR-1014
Open

fix: resolve gDRstyle linting violations#59
bczech wants to merge 3 commits into
mainfrom
GDR-1014

Conversation

@bczech
Copy link
Copy Markdown
Contributor

@bczech bczech commented May 18, 2026

Description

What changed?

Related JIRA issue: GDR-1014

  • Fix trailing whitespace and blank lines
  • Replace nrow/ncol with NROW/NCOL (undesirable_function_linter)
  • Fix paste_linter violations (paste0+collapse, toString, strrep, file.path)
  • Fix seq_linter violations (seq_along, seq_len)
  • Refactor functions exceeding cyclocomp limit of 25 (extract helper functions)
  • Fix test linters (yoda_test, expect_true_false)
  • Remove undesirable operators (|> pipes)

Why was it changed?

Updated gDRstyle linting rules require compliance across all gDR packages.

Checklist for sustainable code base

  • I added tests for any code changed/added
  • I added documentation for any code changed/added
  • I made sure naming of any new functions is self-explanatory and consistent

Logistic checklist

  • Package version bumped
  • Changelog updated

Address lint violations from updated gDRstyle rules:
- Fix trailing whitespace and blank lines
- Replace nrow/ncol with NROW/NCOL
- Fix paste_linter (paste0+collapse, toString, strrep, file.path)
- Fix seq_linter (seq_along, seq_len)
- Refactor cyclocomp_linter violations (extract helper functions)
- Fix test linters (yoda, expect_true_false)
- Remove undesirable operators (|> pipes)
@bczech bczech requested a review from a team as a code owner May 18, 2026 08:17
@bczech bczech requested review from darsoo and gladkia and removed request for a team May 18, 2026 08:17
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily performs whitespace cleanup across multiple files, including R/data.R, R/import_data.R, and the package vignette. Reviewers identified several typographical and grammatical errors in the documentation, such as typos in data type names and incorrect hyphenation, which represent opportunities for improvement.

Comment thread R/data.R
#' Small data.table with raw combo data used for processing via gDR
#'
#' A dataset containing the ReadoutValues for combo experiments made-up of
#' A dataset containing the ReadoutValues for combo experiments made-up of
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrase 'made-up of' should be 'made up of' when used as a verb phrase. 'Made-up' with a hyphen is typically an adjective.

#' A dataset containing the ReadoutValues for combo experiments made up of

Comment thread vignettes/gDR.Rmd

## runDrugResponseProcessingPipeline
Steps (2) and (3) can be combined into a single step through a convenience function: `runDrugResponseProcessingPipeline`. Moreover, the output is `MultiAssayExperiment` object with one experiment per each detected data type. Currently four data types are supported: 'single-agent', 'cotreatment', 'codilution' and 'matrix'. The first three data types are processed via the 'single-agent' model while the 'marix' data is processed via the 'combintation' model.
Steps (2) and (3) can be combined into a single step through a convenience function: `runDrugResponseProcessingPipeline`. Moreover, the output is `MultiAssayExperiment` object with one experiment per each detected data type. Currently four data types are supported: 'single-agent', 'cotreatment', 'codilution' and 'matrix'. The first three data types are processed via the 'single-agent' model while the 'marix' data is processed via the 'combintation' model.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This line contains typos: 'marix' should be 'matrix' and 'combintation' should be 'combination'. Additionally, consider adding the article 'a' before 'MultiAssayExperiment' for better grammatical flow. Corrected text: Steps (2) and (3) can be combined into a single step through a convenience function: runDrugResponseProcessingPipeline. Moreover, the output is a MultiAssayExperiment object with one experiment per each detected data type. Currently four data types are supported: 'single-agent', 'cotreatment', 'codilution' and 'matrix'. The first three data types are processed via the 'single-agent' model while the 'matrix' data is processed via the 'combination' model.

Copy link
Copy Markdown
Contributor

@gladkia gladkia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants