As contributors and maintainers of MSstats project, we pledge to follow the Carpentry Code of Conduct.
Instances of abusive, harassing or other unacceptable behavior may be reported by following our reporting guidelines.
Typos and grammatical errors in documentation can be fixed directly via Github.
All changes should be made in the .R or .Rmd files rather than .Rd files in the /man directory.
Bug reports can be filed in two ways:
-
via the official Google group,
-
or via GitHub issues (the preferred way).
Before filing a bug report please make sure that:
-
the problem was not solved before (by searching older issues and possibly other sources such as the Google group)
-
you can provide a minimal reproducible example so that the developers can reproduce and understand the problem. The reprex package might be helpful.
To help with describing the bug, we have created an issue template which can be used after starting a new issue.
GitHub issues are meant primarily for bug requests.
We suggest to make feature requests via the official Google group of MSstats.
We welcome code contributions to the MSstats.
Every contribution should be made via a pull request on GitHub.
These requirements must be met for your pull request to be accepted:
- Create a separate Git branch for each pull request
- Pass all CI checks - the continuous integration system must give a green light
- Include relevant tests using testthat
- Document new code using roxygen2 and R Markdown
- Add reviewers - tag at least these two people:
- Anthony Wu - MSstats developer
- Mateusz Staniak - MSstats developer
- Update NEWS.md and package version before merging, following semantic versioning and Bioconductor versioning conventions
These guidelines should be followed when possible to maintain code quality:
- For bug fixes: Open an issue first to describe the problem
- Follow the tidyverse style guide with these exceptions:
- Function and class names: use
camelCase - Other names: use lowercase with underscores (
snake_case), except for existing names that must remain unchanged for backward compatibility
- Function and class names: use
- Limit dependencies to keep the package lightweight
- Maintain backward compatibility when modifying existing functionality
- Use
@inheritParamswhen functions share parameter documentation - Reuse existing functions rather than duplicating code
- Prefer
data.tablefor data manipulation when appropriate - Use
match.arg()for argument validation when applicable
This guide is for developers who want to contribute to any VitekLab project. It will walk you through setting up a local development environment to run the app from its source code.
Make sure you have the following software installed:
-
Open your computer's Terminal (Mac/Linux) or Git Bash (Windows).
-
Navigate to the folder where you want to store the project.
-
Run the
git clonecommandgit clone [https://github.com/Vitek-Lab/MSstatsShiny.git](https://github.com/Vitek-Lab/MSstatsShiny.git)
- Open the RStudio application.
- Go to the top menu: File > New Project...
- Select Existing Directory.
- Click Browse... and navigate to the
MSstatsShinyfolder you just cloned. - Click Create Project.
-
In RStudio, go to the Console pane.
-
Install the
devtoolspackage:install.packages("devtools") -
Run the following command to install all project dependencies:
devtools::install_deps(dependencies = TRUE)
Note: This step can take a long time. You only need to do this once.
This is the cycle you will follow to make and test changes.
In the RStudio Console, run:
library(MSstatsShiny)This is your core workflow:
- Edit: Open any project file and make your code changes.
- Save: Save the file.
- Install: Go to the top right corner and click "Install" to reinstall the package.
- Build: Go to the top right corner and click "Build" to run all tests and build the package.
Repeat this Edit > Save > Install > Build cycle as you develop.