Skip to content

Commit 9c600a3

Browse files
authored
Merge pull request #103 from fishR-Core-Team/dev
Moving dev to master in preparation for releasing v0.9.4 to CRAN
2 parents 98cf3ca + ed80ad2 commit 9c600a3

File tree

238 files changed

+12071
-10455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+12071
-10455
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main, master, dev]
66
pull_request:
7-
branches: [main, master]
7+
branches: [main, master, dev]
88

99
name: R-CMD-check
1010

.github/workflows/test-coverage.yaml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
13
on:
24
push:
3-
branches:
4-
- main
5-
- master
5+
branches: [main, master]
66
pull_request:
7-
branches:
8-
- main
9-
- master
7+
branches: [main, master]
108

119
name: test-coverage
1210

1311
jobs:
1412
test-coverage:
15-
runs-on: macOS-latest
13+
runs-on: ubuntu-latest
1614
env:
1715
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
1817
steps:
19-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
2019

21-
- uses: r-lib/actions/setup-r@v1
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
2223

23-
- uses: r-lib/actions/setup-pandoc@v1
24+
- uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
extra-packages: any::covr
27+
needs: coverage
2428

25-
- name: Query dependencies
29+
- name: Test coverage
2630
run: |
27-
install.packages('remotes')
28-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
29-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
31+
covr::codecov(
32+
quiet = FALSE,
33+
clean = FALSE,
34+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
35+
)
3036
shell: Rscript {0}
3137

32-
- name: Cache R packages
33-
uses: actions/cache@v2
34-
with:
35-
path: ${{ env.R_LIBS_USER }}
36-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
37-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
38-
39-
- name: Install dependencies
38+
- name: Show testthat output
39+
if: always()
4040
run: |
41-
install.packages(c("remotes"))
42-
remotes::install_deps(dependencies = TRUE)
43-
remotes::install_cran("covr")
44-
shell: Rscript {0}
41+
## --------------------------------------------------------------------
42+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
43+
shell: bash
4544

46-
- name: Test coverage
47-
run: covr::codecov()
48-
shell: Rscript {0}
45+
- name: Upload test results
46+
if: failure()
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: coverage-test-failures
50+
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
Package: FSA
2-
Version: 0.9.3.9000
3-
Date: 2022-2-15
2+
Version: 0.9.4
3+
Date: 2023-2-1
44
Title: Simple Fisheries Stock Assessment Methods
55
Description: A variety of simple fish stock assessment methods.
66
Authors@R: c(
7-
person("Derek", "Ogle", email="derek@derekogle.com", role=c("aut","cre"),
7+
person(c("Derek","H."), "Ogle", email="DerekOgle51@gmail.com",
8+
role=c("aut","cre"),
89
comment=c(ORCID="0000-0002-0370-9299")),
9-
person("Jason", "Doll", email="jason.doll@fmarion.edu", role=c("aut")),
10-
person("Powell", "Wheeler", email="powell.wheeler@gmail.com", role="aut"),
11-
person("Alexis", "Dinno", email="alexis.dinno@pdx.edu", role="aut",
10+
person(c("Jason","C."), "Doll", email="jason.doll@fmarion.edu",
11+
role=c("aut")),
12+
person(c("A.","Powell"), "Wheeler", email="powell.wheeler@gmail.com",
13+
role="aut"),
14+
person("Alexis", "Dinno", email="alexis.dinno@pdx.edu",
15+
role="aut",
1216
comment="Provided base functionality of dunnTest()")
1317
)
1418
URL: https://fishr-core-team.github.io/FSA/
@@ -46,4 +50,4 @@ Suggests:
4650
tibble,
4751
covr
4852
Encoding: UTF-8
49-
RoxygenNote: 7.1.2
53+
RoxygenNote: 7.2.3

NEWS.md

Lines changed: 292 additions & 162 deletions
Large diffs are not rendered by default.

R/BluegillJL.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#' @concept Petersen
3030
#' @concept Capture History
3131
#'
32-
#' @source From example 8.1 in Schneider, J.C. 1998. Lake fish population estimates by mark-and-recapture methods. Chapter 8 in Schneider, J.C. (ed.) 2000. Manual of fisheries survey methods II: with periodic updates. Michigan Department of Natural Resources, Fisheries Special Report 25, Ann Arbor. [Was (is?) from http://www.michigandnr.com/publications/pdfs/IFR/manual/SMII\%20Chapter08.pdf.]
32+
#' @source From example 8.1 in Schneider, J.C. 1998. Lake fish population estimates by mark-and-recapture methods. Chapter 8 in Schneider, J.C. (ed.) 2000. Manual of fisheries survey methods II: with periodic updates. Michigan Department of Natural Resources, Fisheries Special Report 25, Ann Arbor. [Was (is?) from http://www.michigandnr.com/publications/pdfs/IFR/manual/SMII\%20Chapter08.pdf.] \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/BluegillJL.csv}{CSV file}
3333
#'
3434
#' @seealso Used in \code{\link{mrClosed}} examples.
3535
#'

R/BrookTroutTH.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' @concept Mortality
2323
#' @concept Catch Curve
2424
#'
25-
#' @source Quinlan, H.R. 1999. Biological Characteristics of Coaster Brook Trout at Isle Royale National Park, Michigan, 1996-98. U.S. Fish and Wildlife Service Ashland Fishery Resources Office report. November 1999. [Was (is?) from http://www.fws.gov/midwest/ashland/brook/biochar/biolchar.html.]
25+
#' @source Quinlan, H.R. 1999. Biological Characteristics of Coaster Brook Trout at Isle Royale National Park, Michigan, 1996-98. U.S. Fish and Wildlife Service Ashland Fishery Resources Office report. November 1999. \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/BrookTroutTH.csv}{CSV file}
2626
#'
2727
#' @seealso Used in \code{\link{catchCurve}} and \code{\link{chapmanRobson}} examples.
2828
#'

R/CIDists.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#'
2121
#' @return A #x2 matrix that contains the lower and upper confidence interval bounds as columns and, if \code{verbose=TRUE} \code{x}, \code{n}, and \code{x/n} .
2222
#'
23-
#' @author Derek H. Ogle, \email{derek@@derekogle.com}, though this is largely based on \code{binom.exact}, \code{binom.wilson}, and \code{binom.approx} from the old epitools package.
23+
#' @author Derek H. Ogle, \email{DerekOgle51@gmail.com}, though this is largely based on \code{binom.exact}, \code{binom.wilson}, and \code{binom.approx} from the old epitools package.
2424
#'
2525
#' @seealso See \code{\link{binom.test}}; \code{binconf} in \pkg{Hmisc}; and functions in \pkg{binom}.
2626
#'
@@ -138,7 +138,7 @@ binCI <- function(x,n,conf.level=0.95,type=c("wilson","exact","asymptotic"),
138138
#'
139139
#' @return A #x2 matrix that contains the lower and upper confidence interval bounds as columns and, if \code{verbose=TRUE} \code{x}.
140140
#'
141-
#' @author Derek H. Ogle, \email{derek@@derekogle.com}, though this is largely based on \code{pois.exact}, \code{pois.daly}, \code{pois.byar}, and \code{pois.approx} from the old epitools package.
141+
#' @author Derek H. Ogle, \email{DerekOgle51@gmail.com}, though this is largely based on \code{pois.exact}, \code{pois.daly}, \code{pois.byar}, and \code{pois.approx} from the old epitools package.
142142
#'
143143
#' @keywords htest
144144
#'
@@ -270,7 +270,7 @@ poiCI <- function(x,conf.level=0.95,type=c("exact","daly","byar","asymptotic"),
270270
#'
271271
#' @return A 1x2 matrix that contains the lower and upper confidence interval bounds.
272272
#'
273-
#' @author Derek H. Ogle, \email{derek@@derekogle.com}
273+
#' @author Derek H. Ogle, \email{DerekOgle51@gmail.com}
274274
#'
275275
#' @keywords htest
276276
#'

R/ChinookArg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#'
2121
#' @concept Weight-Length
2222
#'
23-
#' @source From Figure 4 in Soto, D., I. Arismendi, C. Di Prinzio, and F. Jara. 2007. Establishment of Chinook Salmon (\emph{Oncorhynchus tshawytscha}) in Pacific basins of southern South America and its potential ecosystem implications. Revista Chilena d Historia Natural, 80:81-98. [Was (is?) from http://www.scielo.cl/pdf/rchnat/v80n1/art07.pdf.]
23+
#' @source From Figure 4 in Soto, D., I. Arismendi, C. Di Prinzio, and F. Jara. 2007. Establishment of Chinook Salmon (\emph{Oncorhynchus tshawytscha}) in Pacific basins of southern South America and its potential ecosystem implications. Revista Chilena d Historia Natural, 80:81-98. [Was (is?) from http://www.scielo.cl/pdf/rchnat/v80n1/art07.pdf.] \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/ChinookArg.csv}{CSV file}
2424
#'
2525
#' @seealso Used in \code{\link{lwCompPreds}} examples.
2626
#'

R/CodNorwegian.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' @concept Stock-Recruit
2323
#' @concept Recruitment
2424
#'
25-
#' @source From Garrod, D.J. 1967. Population dynamics of the Arcto-Norwegian Cod. Journal of the Fisheries Research Board of Canada, 24:145-190.
25+
#' @source From Garrod, D.J. 1967. Population dynamics of the Arcto-Norwegian Cod. Journal of the Fisheries Research Board of Canada, 24:145-190. \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/CodNorwegian.csv}{CSV file}
2626
#'
2727
#' @seealso Used in \code{\link{srStarts}}, \code{\link{srFuns}}, and \code{\link{nlsTracePlot}} examples.
2828
#'

R/CutthroatAL.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#' @concept Jolly-Seber
3838
#' @concept Capture History
3939
#'
40-
#' @source From Appendix A.3 of Harding, R.D., C.L. Hoover, and R.P. Marshall. 2010. Abundance of Cutthroat Trout in Auke Lake, Southeast Alaska, in 2005 and 2006. Alaska Department of Fish and Game Fisheries Data Series No. 10-82. [Was (is?) from http://www.sf.adfg.state.ak.us/FedAidPDFs/FDS10-82.pdf.]
40+
#' @source From Appendix A.3 of Harding, R.D., C.L. Hoover, and R.P. Marshall. 2010. Abundance of Cutthroat Trout in Auke Lake, Southeast Alaska, in 2005 and 2006. Alaska Department of Fish and Game Fisheries Data Series No. 10-82. [Was (is?) from http://www.sf.adfg.state.ak.us/FedAidPDFs/FDS10-82.pdf.] \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/CutthroatAL.csv}{CSV file}
4141
#'
4242
#' @note Entered into \dQuote{RMark} format (see \code{\link[FSAdata]{CutthroatALf}} in \pkg{FSAdata}) and then converted to individual format with \code{\link{capHistConvert}}
4343
#'

R/Ecoli.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' @concept Nonlinear Model
2222
#' @concept Other
2323
#'
24-
#' @source McKendrick, A.G. and M. Kesava Pai. 1911. The Rate of Multiplication of Micro-Organisms: a Mathematical Study. Proceedings of the Royal Society of Edinburgh. 31:649-655.
24+
#' @source McKendrick, A.G. and M. Kesava Pai. 1911. The Rate of Multiplication of Micro-Organisms: a Mathematical Study. Proceedings of the Royal Society of Edinburgh. 31:649-655. \href{https://raw.githubusercontent.com/fishR-Core-Team/FSA/master/data-raw/Ecoli.csv}{CSV file}
2525
#'
2626
#' @keywords datasets
2727
NULL

R/FSA.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' @description Functions to support basic fisheries stock assessment methods.
44
#'
5-
#' @details Functions from this package can be used to perform a variety of basic fisheries stock assessment methods. Detailed descriptions for most functions are available in the \href{http://derekogle.com/IFAR/}{Introductory Fisheries Analysis with R} book (Ogle 2016). Vignettes for the boxed examples in the \dQuote{Analysis and Interpretation of Freshwater Fisheries Data} book can be viewed with \code{fishR("AIFFD")}.
5+
#' @details Functions from this package can be used to perform a variety of basic fisheries stock assessment methods. Detailed descriptions for most functions are available in the Introductory Fisheries Analysis with R book (Ogle 2016) (see \code{fishR("IFAR")}). Vignettes for the boxed examples in the \dQuote{Analysis and Interpretation of Freshwater Fisheries Data} book can be viewed with \code{fishR("AIFFD")}.
66
#'
77
#' Questions, comments, or suggestions should be given on the \href{https://github.com/fishR-Core-Team/FSA/issues/}{GitHub FSA Issues page}.
88
#'
@@ -13,10 +13,10 @@
1313
#' \item The \href{https://github.com/droglenc/FSAWs/}{FSAWs package} contains functions for developing and validating standard weight equations.
1414
#' }
1515
#'
16-
#' @references Ogle, D.H. 2016. \href{http://derekogle.com/IFAR/}{Introductory Fisheries Analyses with R}. Chapman & Hall/CRC, Boca Raton, FL.
16+
#' @references Ogle, D.H. 2016. \href{https://fishr-core-team.github.io/fishR/pages/books.html#introductory-fisheries-analyses-with-r}{Introductory Fisheries Analyses with R}. Chapman & Hall/CRC, Boca Raton, FL.
1717
#'
1818
#' @docType package
1919
#'
2020
#' @name FSA
2121
#'
22-
NULL
22+
NULL

0 commit comments

Comments
 (0)