CONTRIBUTING.md

Contributing

Thanks for your interest in contributing to workflowr. Here are some guidelines to help make it easier to merge your Pull Request:

If you're new to submitting Pull Requests, please read the section Contribute to other projects in the tutorial A quick introduction to version control with Git and GitHub.

Setup a development environment

To contribute to workflowr, follow these steps to setup a development environment:

  1. Fork GitHub repository and clone to your local machine

  2. Install dependencies

    ```

    Install package dependencies

    if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes") remotes::install_deps(dependencies = TRUE)

    Install developlment-only dependencies

    install.packages("devtools")

    Install local copy of workflowr

    devtools::install() ```

More about this repository

For the most part, I try to follow the guidelines from R packages by Hadley Wickham. The unit tests are performed with testthat, the documentation is built with roxygen2, and the online package documentation is created with pkgdown.

Minimal continuous integration testing is performed by GitHub Actions for each push to the repository. Extensive continuous integration testing is performed at scheduled intervals in workflowr-pkg-tests. Code coverage is calculated with covr and Codecov. The online package documentation is automatically generated by running pkgdown from GitHub Actions and pushing to the gh-pages branch.

The template files used by wflow_start() to populate a new project are defined in the list templates in the file R/infrastructure.R. The RStudio project template is configured by inst/rstudio/templates/project/wflow_start.dcf. The repository contains the files LICENSE and LICENSE.md to both adhere to R package conventions for defining the license and also to make the license clear in a more conventional manner (suggestions for improvement welcome). The directory scripts/ contains convenience scripts for maintaining the R package. The remaining directories are standard for R packages as described in the manual Writing R Extensions.

Scripts for maintaining the package

Convenience scripts for maintaining the package are located in scripts/. These are not included in the package tarball for distribution. They are all intended to be executed from the root directory of the package. The convenience scripts include:

Release checklist (for maintainers)



jdblischak/workflowr documentation built on Feb. 27, 2024, 4:37 p.m.