Skip to content

Commit

Permalink
Merge pull request #386 from bcgov/cran-2.1.0
Browse files Browse the repository at this point in the history
CRAN v2.1.0
  • Loading branch information
aazizish authored Oct 21, 2024
2 parents 6ee4ed0 + a81e0a2 commit db06fa8
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ssdtools
Title: Species Sensitivity Distributions
Version: 2.0.0.9001
Version: 2.1.0.9000
Authors@R: c(
person("Joe", "Thorley", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7683-4592")),
Expand Down
9 changes: 5 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# ssdtools 2.0.0.9001
# ssdtools 2.1.0.9000

- Add `ssd_xxmulti_fitdists()` functions to accept object of class fitdists.
- Same as previous version.


# ssdtools 2.0.0.9000
# ssdtools 2.1.0

- Set `ssd_xxmulti(lnorm.weight = 0)` (instead of 1) to avoid incorrect values with `do.call("ssd_xxmulti", c(..., estimates(fits))` if `fits` does not include the log-normal distribution.
- Added `ssd_xxmulti_fitdists()` functions to accept object of class `fitdists`.
- Set `ssd_xxmulti(..., lnorm.weight = 0)` (instead of 1) to avoid incorrect values with `do.call("ssd_xxmulti", c(..., estimates(fits))` if `fits` does not include the log-normal distribution.


# ssdtools 2.0.0
Expand Down
2 changes: 1 addition & 1 deletion R/exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Energy, the Environment and Water
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compl %>% iance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
Expand Down
14 changes: 13 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/bcgov/ssdtools/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bcgov/ssdtools/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/bcgov/ssdtools/graph/badge.svg?token=gVKHQQD1Jp)](https://app.codecov.io/gh/bcgov/ssdtools)
[![Codecov test coverage](https://codecov.io/gh/bcgov/ssdtools/graph/badge.svg)](https://app.codecov.io/gh/bcgov/ssdtools)
[![CRAN status](https://www.r-pkg.org/badges/version/ssdtools)](https://cran.r-project.org/package=ssdtools)
![CRAN downloads](https://cranlogs.r-pkg.org/badges/ssdtools)
<!-- badges: end -->
Expand All @@ -32,11 +32,19 @@ Confidence intervals on hazard concentrations and proportions are produced by bo

## Installation

### Release

To install the latest release version from [CRAN](https://CRAN.R-project.org/package=ssdtools).
```r
install.packages("ssdtools")
```

#### Website

The website for the release version is at <https://bcgov.github.io/ssdtools/>.

### Development

To install the latest development version from [r-universe](https://bcgov.r-universe.dev/ssdtools).
```r
install.packages("ssdtools", repos = c("https://bcgov.r-universe.dev", "https://cloud.r-project.org"))
Expand All @@ -48,6 +56,10 @@ or from [GitHub](https://github.com/bcgov/ssdtools)
pak::pak("bcgov/ssdtools")
```

#### Website

The website for the development version is at <https://bcgov.github.io/ssdtools/dev/>.

## Introduction

The dependency [`ssddata`](https://github.com/open-AIMS/ssddata) provides example data sets for several chemicals including Boron.
Expand Down
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/bcgov/ssdtools/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bcgov/ssdtools/actions/workflows/R-CMD-check.yaml)
[![Codecov test
coverage](https://codecov.io/gh/bcgov/ssdtools/graph/badge.svg?token=gVKHQQD1Jp)](https://app.codecov.io/gh/bcgov/ssdtools)
coverage](https://codecov.io/gh/bcgov/ssdtools/graph/badge.svg)](https://app.codecov.io/gh/bcgov/ssdtools)
[![CRAN
status](https://www.r-pkg.org/badges/version/ssdtools)](https://cran.r-project.org/package=ssdtools)
![CRAN downloads](https://cranlogs.r-pkg.org/badges/ssdtools)
Expand All @@ -29,13 +29,22 @@ are produced by bootstrapping.

## Installation

### Release

To install the latest release version from
[CRAN](https://CRAN.R-project.org/package=ssdtools).

``` r
install.packages("ssdtools")
```

#### Website

The website for the release version is at
<https://bcgov.github.io/ssdtools/>.

### Development

To install the latest development version from
[r-universe](https://bcgov.r-universe.dev/ssdtools).

Expand All @@ -50,6 +59,11 @@ or from [GitHub](https://github.com/bcgov/ssdtools)
pak::pak("bcgov/ssdtools")
```

#### Website

The website for the development version is at
<https://bcgov.github.io/ssdtools/dev/>.

## Introduction

The dependency [`ssddata`](https://github.com/open-AIMS/ssddata)
Expand Down Expand Up @@ -189,7 +203,7 @@ Distributions in Ecotoxicology. CRC Press.

## Licensing

Copyright 2018-2024 Province of British Columbia
Copyright 2015-2023 Province of British Columbia
Copyright 2021 Environment and Climate Change Canada
Copyright 2023-2024 Australian Government Department of Climate Change,
Energy, the Environment and Water
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The large size of these sub-directories is necessary.

## CRAN Package Check Results for Package

Fixed noRemap issue.
Fixed M1mac issue.
18 changes: 6 additions & 12 deletions paper/paper.bib
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ @article{newman_applying_2000
number = {2},
pages = {508-515},
keywords = {Risk assessment, Species sensitivity, Bootstrap, Statistics, Sample size},
doi = {https://doi.org/10.1002/etc.5620190233},
doi = {10.1002/etc.5620190233},
url = {https://setac.onlinelibrary.wiley.com/doi/abs/10.1002/etc.5620190233},
eprint = {https://setac.onlinelibrary.wiley.com/doi/pdf/10.1002/etc.5620190233},
abstract = {Abstract Species-sensitivity distribution methods assemble single-species toxicity data to predict hazardous concentrations (HCps) affecting a certain percentage (p) of species in a community. The fit of the lognormal model and required number of individual species values were evaluated with 30 published data sets. The increasingly common assumption that a lognormal model best fits these data was not supported. Fifteen data sets failed a formal test of conformity to a lognormal distribution; other distributions often provided better fit to the data than the lognormal distribution. An alternate bootstrap method provided accurate estimates of HCp without the assumption of a specific distribution. Approximate sample sizes producing HC5 estimates with minimal variance ranged from 15 to 55, and had a median of 30 species-sensitivity values. These sample sizes are higher than those suggested in recent regulatory documents. A bootstrap method is recommended that predicts with 95\% confidence the concentration affecting 5\% or fewer species.},
Expand Down Expand Up @@ -50,7 +50,8 @@ @book{posthuma_species_2001
publisher = {CRC press},
author = {Posthuma, L and {Suter II}, GW and Traas, TP},
year = {2001},
url = {https://www.crcpress.com/Species-Sensitivity-Distributions-in-Ecotoxicology/Posthuma-II-Traas/p/book/9781566705783}
url = {https://www.crcpress.com/Species-Sensitivity-Distributions-in-Ecotoxicology/Posthuma-II-Traas/p/book/9781566705783},
doi = {10.1002/etc.4373}
}

@Article{fitdistrplus,
Expand Down Expand Up @@ -165,13 +166,6 @@ @article{fox_recent_2021
pages = {293--308}
}

@article{chapman_2007,
title = {Methods of uncertainty analysis},
journal={In: A H (ed) EUFRAM Concerted Action to Develop a European Framework for Probabilistic Risk Assessment of the Environmental Impacts of Pesticides, Vol 2, Detailed Reports on Role, Methods, Reporting and Validation},
author = {Chapman, PF RM and Hart, A and Roelofs, W and Aldenberg, T and Solomon, K and Tarazona, J LM and Byrne, P and Powley, W and Green, J and Ferson, S and Galicia, H},
year = {2007}
}

@techreport{fox_methodologies_2022,
title = {Joint investigation into {statistical} {methodologies} underpinning the {derivation} of {toxicant} {guideline} {values} in {Australia} and {New Zealand}},
institution = {Environmetrics Australia and Australian Institute of Marine Science},
Expand Down Expand Up @@ -221,9 +215,9 @@ @techreport{bcmecc2019

@techreport{USEPA2020,
author = {{US EPA}},
title = {Species Sensitivity Distribution (SSD) Toolbox.},
title = {Species Sensitivity Distribution (SSD) Toolbox},
year = {2020},
publisher = { Center for Computational Toxicology and Exposure, Durham, NC},
url = {https://www.epa.gov/chemical-research/species-sensitivity-distribution-ssd-toolbox}
url = {https://www.epa.gov/chemical-research/species-sensitivity-distribution-ssd-toolbox},
doi = {10.23645/epacomptox.11971392.v2}
}

0 comments on commit db06fa8

Please sign in to comment.