-
Notifications
You must be signed in to change notification settings - Fork 28
Development
Shantanu Singh edited this page Jul 17, 2022
·
8 revisions
- Fork the cytominer repository
- Clone the project:
git clone [email protected]:USERNAME/cytominer.git
- In RStudio, create a new project in this directory
- Install
devtools
:install.packages("devtools")
- Install dependencies:
devtools::install_dev_deps(".")
- Style the package:
install.packages("styler") styler::style_pkg()
- Verify the changes.
- Lint the package:
install.packages("lintr") lintr::lint_package()
- Address warnings
- Iterate until no warnings
- Test the package (or using the RStudio shortcut for your OS):
devtools::test()
- To test a specific file (e.g.
test-aggregate.R
):devtools::test(filter = "aggregate")
- Build the documentation (or using the RStudio shortcut for your OS):
devtools::document()
- (Optional) Build the pkgdown website:
pkgdown::build_site()
- Build the package (or using the RStudio shortcut for your OS):
devtools::build()
- To test a specific file (e.g.
test-aggregate.R
):devtools::test(filter = "aggregate")
- Check the package (or using the RStudio shortcut for your OS):
devtools::check()