Thank you for your interest in contributing to vistributions! This document provides guidelines for contributing code, documentation, and bug reports.
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Reporting Bugs & Requesting Features
- Check existing issues before opening a new one.
- For bug reports, include a minimal reproducible example (reprex) using the
reprexpackage whenever possible. - Include your R session information via
sessionInfo().
Development Setup
-
Clone the repository and checkout the
developbranch: -
Open the project in R / RStudio and install required dependencies:
install.packages(c("devtools", "testthat", "vdiffr", "ggplot2", "pkgdown")) -
Load the package interactively:
devtools::load_all()
Development Workflow
Default working branch is
develop. Please submit pull requests targetingdevelop, notmaster.-
Run tests regularly:
devtools::test() -
Regenerate documentation and
NAMESPACEfrom roxygen tags:devtools::document()Do not edit
NAMESPACEorman/*.Rdfiles by hand. -
Run full
R CMD checkbefore submitting:devtools::check() Update
NEWS.mdwith a concise description of your changes and reference issue numbers if applicable.
Coding Standards
- Input validation: Use existing
check_*helpers inR/vdist-utils.R(check_numeric,check_positive,check_range). - Base R conventions: Use
call. = FALSEfor user-facing errors (stop("message", call. = FALSE)). - Never introduce unprompted network calls in package code or startup hooks.
- Plotting functions: Support
print_plot = TRUEby default, and return theggplotobject cleanly whenprint_plot = FALSE.
