-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement check for real_scale in fi_pool_cluster
Fixes #2. Add some notes for development.
- Loading branch information
Showing
4 changed files
with
326 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,36 @@ | ||
# Function dependencies | ||
# Developer resources and instructions | ||
|
||
**While developing** | ||
- Regularly run `test()` or `test_active_file()` | ||
|
||
**Before committing** | ||
- Run `check()`, address any errors, warnings and notes | ||
|
||
**Before pushing** | ||
- Sync with origin/main | ||
- Address any conflicts | ||
- Run dependency graph | ||
- Run `test-coverage` | ||
|
||
## Function dependency graph | ||
|
||
Code to generate the function dependency graph: | ||
```r | ||
devtools::install_github("datastorm-open/DependenciesGraphs") | ||
#devtools::install_github("datastorm-open/DependenciesGraphs") | ||
library(DependenciesGraphs) | ||
load_all() | ||
dep <- envirDependencies("package:PoolPoweR") | ||
plot(dep) | ||
``` | ||
|
||
![](https://raw.githubusercontent.com/AngusMcLure/PoolPoweR/main/dependencies/dep.png?token=GHSAT0AAAAAACICLPCIT5EJVC32Y7QQITYCZKJTYEA) | ||
![](https://raw.githubusercontent.com/AngusMcLure/PoolPoweR/main/dependencies/dep.png?token=GHSAT0AAAAAACICLPCIT5EJVC32Y7QQITYCZKJTYEA) | ||
|
||
## Test coverage | ||
|
||
```r | ||
library(covr) | ||
cov <- package_coverage() | ||
write.csv(cov, "dev_resources/coverage_report.csv", quote = F, row.names = F) | ||
|
||
# To show report markup in RStudio | ||
report(cov) | ||
``` |
Oops, something went wrong.