Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaterboyBezzina committed Apr 23, 2024
1 parent cb67595 commit ffe18d6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
50 changes: 50 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
1 change: 1 addition & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ knitr::opts_chunk$set(
# CalcThemAll.PRM <img src="man/figures/hex.png" align="right" height="138" alt="tidyr website" /></a>

<!-- badges: start -->
[![R-CMD-check](https://github.com/AlexWaterboyBezzina/CalcThemAll.PRM/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/AlexWaterboyBezzina/CalcThemAll.PRM/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

This package provides code for estimating the combined toxicity of measured pesticides using their Species Sensitivity Distributions (SSDs) in a multi-substance, potentially affected fraction approach. The resulting value is an estimate of the percentage of species impacted by the measured pesticides; a value which is referred to in this package as the **Pesticide Risk Metric (PRM)**. This is based on the Queensland Department of Environment and Science Water Quality & Investigation's [method](https://www.publications.qld.gov.au/dataset/method-development-pesticide-risk-metric-baseline-condition-of-waterways-to-gbr/resource/c65858f9-d7ba-4aef-aa4f-e148f950220f) used in the Reef 2050 Water Quality Improvement Plan. The main difference is the ability to add different pesticides to be measured provided they have one of the following SSD distributions:
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# CalcThemAll.PRM <img src="man/figures/hex.png" align="right" height="138" alt="tidyr website" /></a>

<!-- badges: start -->

[![R-CMD-check](https://github.com/AlexWaterboyBezzina/CalcThemAll.PRM/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/AlexWaterboyBezzina/CalcThemAll.PRM/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

This package provides code for estimating the combined toxicity of
Expand Down Expand Up @@ -120,10 +122,10 @@ head(Canto_wet_season_Total_PRM)
#> `Site Name` `Sampling Year` `Total PRM`
#> <chr> <chr> <dbl>
#> 1 Celestial City 2017-2018 21.0
#> 2 Mt Lunar 2017-2018 5.98
#> 2 Mt Lunar 2017-2018 5.96
#> 3 Violet Town 2017-2018 37.5
#> 4 Celestial City 2018-2019 16.9
#> 5 Mt Lunar 2018-2019 3.94
#> 4 Celestial City 2018-2019 16.8
#> 5 Mt Lunar 2018-2019 3.95
#> 6 Violet Town 2018-2019 31.2
```

Expand Down

0 comments on commit ffe18d6

Please sign in to comment.