Contributing to flashier.utils
Source:CONTRIBUTING.md
Thanks for considering a contribution. Bug reports, documentation fixes and scientific questions are all welcome.
Report a bug or ask a question
Open an issue at https://github.com/mdmanurung/flashier-utils/issues. Include the package version (packageVersion("flashier.utils")), the flashier and ebnm versions, a small reproducible example with named matrices, and the output of factor_provenance(result = <your result>) if the question concerns a function’s origin or runtime versions.
Propose a change
Open an issue first for anything beyond a typo, so the scope and the scientific contract can be agreed before code is written.
Fork, branch from
main, and keep changes focused.Keep the contracts: unique row and column IDs, explicit
sample_side, factor selections as character IDs, no silent normalisation, uncertainty labelled with what it conditions on. Do not add single-value or reserved arguments to exports.Credit original authors. Any method adapted from another package needs its authors in the roxygen
@authorfield, a row ininst/provenance.csv, an entry inCREDITS.md, and the upstream license notice ininst/NOTICEwhen source is reused. Do not invent individual authors where attribution is unresolved.-
Add or update tests in
tests/testthat/and run the suite:Keep every exported function with
@param,@return,@examplesand@author; the site checker enforces attribution and link integrity. Add a NEWS.md bullet for user-visible changes.
Open a pull request against
main. CI runs R CMD check on Linux (release, devel, oldrel), macOS and Windows plus a job with every optional engine.
Code style
Base R first; ggplot2 for plots; dependencies only in Suggests and gated with .check_engine() unless the whole package needs them. Lines up to 120 characters; run styler::style_pkg() on files you touch.
Conduct
Be respectful. Reviews and discussions follow the rOpenSci code of conduct.