Skip to content

Prepare SelectSim 0.1.6 for CRAN submission#10

Merged
Arvindiyer merged 6 commits into
mainfrom
check_cran
Jul 12, 2026
Merged

Prepare SelectSim 0.1.6 for CRAN submission#10
Arvindiyer merged 6 commits into
mainfrom
check_cran

Conversation

@Arvindiyer

@Arvindiyer Arvindiyer commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

Prepare SelectSim 0.1.6 for its initial CRAN submission.

Changes

  • Added missing \value and \examples sections to dataset documentation
  • Cleaned spelling and documentation wording
  • Added cran-comments.md
  • Updated .Rbuildignore
  • Confirmed tests, URL checks, spelling checks, and local R CMD check --as-cran

Validation

  • 15 tests passed
  • No spelling errors
  • All URLs valid
  • Local R CMD check --as-cran: 0 errors, 0 warnings, 1 expected NOTE (New submission)

Summary by CodeRabbit

  • Documentation
    • Expanded and standardized dataset/schema reference pages with clearer descriptions, added “value”/“return” details, and more helpful examples.
    • Corrected argument wording and typos throughout the function documentation.
    • Updated README, vignettes, and manuscript citation/DOI formatting to match published style.
  • Bug Fixes
    • Adjusted result sorting/ordering behavior to use explicit descending flags.
  • Chores
    • Updated package metadata (title/description), license year, build ignore rules, and added release/check information to package notes.

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Arvindiyer, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 seconds

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 09b52a2f-6140-471f-bae2-1f1b65ec84e5

📥 Commits

Reviewing files that changed from the base of the PR and between dda322b and 6189909.

📒 Files selected for processing (2)
  • README.md
  • src/Makevars.win
📝 Walkthrough

Walkthrough

This release-preparation update adds structured dataset and function help, smaller examples, corrected wording, citation formatting, CRAN check notes, changelog edits, spelling support, metadata updates, and minor R style changes.

Changes

Documentation and release preparation

Layer / File(s) Summary
Release and editorial updates
.Rbuildignore, NEWS.md, README.*, cran-comments.md, inst/WORDLIST, DESCRIPTION, LICENSE, vignettes/*.Rmd
Release metadata, citation formatting, historical notes, CRAN results, spelling terms, license year, and vignette presentation are updated.
Source documentation and examples
R/data.R, R/gam_utils.r, R/selectX_run.R, R/selectX_create.r, R/selectX_stats.r
Roxygen documentation adds returns and examples, clarifies parameter descriptions, uses a smaller maf2gam() example input, and replaces shorthand logical constants.
Generated help-page updates
man/*.Rd
Rd pages add structured formats, values, usage, and examples for datasets and schemas, and correct parameter descriptions and example references.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • SelectSim issue 9 — Covers the same release-preparation objectives, including CRAN comments, documentation, proofreading, and citation updates.

Possibly related PRs

  • CSOgroup/SelectSim#8 — Directly overlaps with the Nature Genetics citation formatting updates in the README.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: preparing SelectSim 0.1.6 for CRAN submission.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch check_cran

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@man/filter_maf_column.Rd`:
- Around line 16-18: Update the implementation of the fixed argument in the
relevant filtering function so fixed = FALSE passes through to grep as fixed =
FALSE, enabling regex matching, while preserving literal matching when fixed =
TRUE; keep the fixed documentation consistent with this behavior.

In `@man/filter_maf_truncating.Rd`:
- Line 12: Update the `schema` parameter description in `filter_maf_truncating`
documentation to identify it as a nested list, and retain the reference to
`TCGA_maf_schema` as the example of the expected structure.

In `@R/gam_utils.r`:
- Line 329: Update the roxygen documentation for the column parameter of
stat_maf_column() to describe it as a column name, matching its use in maf[,
column] and the string example "Variant_Classification"; remove the incorrect
data-frame schema and TCGA_maf_schema reference.
- Line 231: Update the `@param schema` documentation for all four filtering
helpers in `R/gam_utils.r` to describe `schema` as a list containing column
mappings and mutation-type definitions, rather than as a data-frame schema. Keep
the references to `TCGA_maf_schema` and equivalent schema examples as
appropriate.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4de6ad12-6346-4b77-98d0-5e2d0321ba0f

📥 Commits

Reviewing files that changed from the base of the PR and between 9e11f9e and 733d0b0.

📒 Files selected for processing (28)
  • .Rbuildignore
  • NEWS.md
  • R/data.R
  • R/gam_utils.r
  • R/selectX_run.R
  • README.Rmd
  • README.md
  • cran-comments.md
  • inst/WORDLIST
  • man/GENIE_maf_schema.Rd
  • man/TCGA_maf_schema.Rd
  • man/filter_maf_column.Rd
  • man/filter_maf_ignore.Rd
  • man/filter_maf_missense.Rd
  • man/filter_maf_schema.Rd
  • man/filter_maf_truncating.Rd
  • man/luad_maf.Rd
  • man/luad_result.Rd
  • man/luad_run_data.Rd
  • man/maf2gam.Rd
  • man/mutation_type.Rd
  • man/oncokb_genes.Rd
  • man/oncokb_truncating_genes.Rd
  • man/selectX.Rd
  • man/stat_maf_column.Rd
  • man/variant_catalogue.Rd
  • vignettes/data_processing.Rmd
  • vignettes/introduction.Rmd

Comment thread man/filter_maf_column.Rd
Comment on lines +16 to +18
\item{inclusive}{a boolean to include or exclude the data frame with values in list provided}

\item{fixed}{a grep argument to specify if grep use the argumnet as string or not}
\item{fixed}{a grep argument to specify if grep use the argument as string or not}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '== relevant files ==\n'
git ls-files | rg '(^|/)(filter_maf_column|filter_maf_column\\.Rd|R/|man/)' || true

printf '\n== locate symbols/usages ==\n'
rg -n "filter_maf_column|inclusive|fixed" R man -S || true

printf '\n== read Rd file ==\n'
sed -n '1,120p' man/filter_maf_column.Rd

printf '\n== candidate implementation files ==\n'
fd -a 'filter_maf_column' R man || true

Repository: CSOgroup/SelectSim

Length of output: 6196


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '== function body around filter_maf_column ==\n'
sed -n '88,125p' R/gam_utils.r

printf '\n== roxygen docs around the parameter text ==\n'
sed -n '74,86p' R/gam_utils.r

printf '\n== other helpers that delegate to filter_maf_column ==\n'
sed -n '145,205p' R/gam_utils.r

Repository: CSOgroup/SelectSim

Length of output: 4767


Clarify fixed or change the implementation. fixed = FALSE still calls grep(..., fixed = TRUE), so regex matching never happens; either update the code or document that only literal matching is supported.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@man/filter_maf_column.Rd` around lines 16 - 18, Update the implementation of
the fixed argument in the relevant filtering function so fixed = FALSE passes
through to grep as fixed = FALSE, enabling regex matching, while preserving
literal matching when fixed = TRUE; keep the fixed documentation consistent with
this behavior.

\item{maf}{a maf as dataframe}

\item{schema}{a schema of datafrane check Select::TCGA_maf_schema for example}
\item{schema}{a data-frame schema; see \code{TCGA_maf_schema} for an example}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Describe schema as a list, not a data-frame schema.

TCGA_maf_schema is defined in R/gam_utils.r:31-46 as a nested list, and filter_maf_truncating() accesses its nested entries. Calling this a “data-frame schema” may lead users to pass a data frame instead of the expected list.

-\item{schema}{a data-frame schema; see \code{TCGA_maf_schema} for an example}
+\item{schema}{a list describing the MAF schema; see \code{TCGA_maf_schema} for an example}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
\item{schema}{a data-frame schema; see \code{TCGA_maf_schema} for an example}
\item{schema}{a list describing the MAF schema; see \code{TCGA_maf_schema} for an example}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@man/filter_maf_truncating.Rd` at line 12, Update the `schema` parameter
description in `filter_maf_truncating` documentation to identify it as a nested
list, and retain the reference to `TCGA_maf_schema` as the example of the
expected structure.

Comment thread R/gam_utils.r
#'
#' @param maf a maf as dataframe
#' @param schema a schema of datafrane check Select::TCGA_maf_schema for example
#' @param schema a data-frame schema; see `TCGA_maf_schema` for an example

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Describe schema as a list, not a data frame.

TCGA_maf_schema and GENIE_maf_schema are lists containing column mappings and mutation-type definitions. Calling them a “data-frame schema” is misleading for all four filtering helpers.

Proposed wording
-#' `@param` schema a data-frame schema; see `TCGA_maf_schema` for an example
+#' `@param` schema a schema list defining MAF column mappings and mutation classes;
+#'   see `TCGA_maf_schema` for an example

Also applies to: 258-258, 281-281, 304-304

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@R/gam_utils.r` at line 231, Update the `@param schema` documentation for all
four filtering helpers in `R/gam_utils.r` to describe `schema` as a list
containing column mappings and mutation-type definitions, rather than as a
data-frame schema. Keep the references to `TCGA_maf_schema` and equivalent
schema examples as appropriate.

Comment thread R/gam_utils.r
#'
#' @param maf a maf as dataframe
#' @param column a schema of datafrane check Select::TCGA_maf_schema for example
#' @param column a data-frame schema; see `TCGA_maf_schema` for an example

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Document column as a column name.

stat_maf_column() uses maf[, column] and the example passes "Variant_Classification", so this parameter is not a data-frame schema.

Proposed wording
-#' `@param` column a data-frame schema; see `TCGA_maf_schema` for an example
+#' `@param` column column name in the MAF data frame to summarize
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#' @param column a data-frame schema; see `TCGA_maf_schema` for an example
#' `@param` column column name in the MAF data frame to summarize
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@R/gam_utils.r` at line 329, Update the roxygen documentation for the column
parameter of stat_maf_column() to describe it as a column name, matching its use
in maf[, column] and the string example "Variant_Classification"; remove the
incorrect data-frame schema and TCGA_maf_schema reference.

@Arvindiyer Arvindiyer mentioned this pull request Jul 12, 2026
32 tasks
@Arvindiyer Arvindiyer merged commit 54c06ec into main Jul 12, 2026
5 checks passed
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.

1 participant