.github/CONTRIBUTING.md

Contributing to xpose

We are happy that you are willing to help us out with the development of xpose. Before get started please take some time to read the following guidelines.

Submitting issues

Before posting a new issue, please check that it has not already been posted.

Submitting pull requests

To contribute code to xpose please carefully follow the steps listed below.

Note 1: before getting started with a pull request, we strongly encourage you follow the procedure described above for feature requests and/or reporting a bug to ensure that your project is compatible with the our xpose road-map.

Note 2: if you are unfamiliar with the development of R packages, please take some time to read the R packages book by Hadley Wickham.

  1. Fork the xpose repository.
  2. Make the changes to the code on your fork.

    • Use the tidyverse coding style.
    • Any new function should have Roxygen documentation. Internal functions should contain #' @keywords internal. Add examples to new functions. Make sure to update the documentation with devtools::document() before submitting the pull request.
    • Tests should be added under tests/testthat/ to ensure for proper code coverage.
    • New plots should be created using the generic xplot_scatter(), xplot_distrib() or xplot_qq(). Check for example the code of R/plot_gof.R to see how it should be done.
    • General utility functions should be added under R/utils.R and plot utility functions under R/xplot_helpers.R.
    • Use functions from the tidyverse (e.g. dplyr, tidyr, stringr, etc.) whenever possible.
    • Add a brief description of your contribution to NEWS.md using bullets. Make sure to list it under the most recent xpose version and to add your name as (@<your_github_username>). e.g. * Added support for multiple pages plots (@guiastrennec). In addition, if your pull request addresses one or several issues, please reference them using the # sign e.g. * Added support for multiple pages plots (@guiastrennec, #3)
  3. Run devtools::check() on your fork and ensure the absence of any errors, warnings and notes.

  4. Create a pull request to the dev branch of the UUPharmacometrics/xpose repository.

    • Provide a good description of your pull request. Add examples, function outputs and plots images illustrating the new features.
    • Make sure that travis-ci, appveyor and codecov tests are all sucessfull
  5. Address all comments until the pull request is either merged or closed.

All of this may seem complicated at first, but you can contact one of the core developers to assist you throughout the process.



guiastrennec/ggxpose documentation built on Feb. 3, 2024, 7:36 a.m.