Skip to content

Commit 1271966

Browse files
committed
Avoiding CRAN warnings
1 parent 0cca4d6 commit 1271966

13 files changed

+41
-42
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mizer
22
Title: Dynamic Multi-Species Size Spectrum Modelling
3-
Date: 2024-03-08
3+
Date: 2024-11-13
44
Type: Package
55
Description: A set of classes and methods to set up and run multi-species, trait
66
based and community size spectrum ecological models, focused on the marine

R/calibrate.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ calibrateNumber <- function(params) {
120120
#' `r lifecycle::badge("deprecated")`
121121
#'
122122
#' This function has been deprecated and will be removed in the future unless
123-
#' you have a usecase for it. If you do have a usecase for it, please let the
123+
#' you have a use case for it. If you do have a usecase for it, please let the
124124
#' developers know by creating an issue at
125-
#' <https://github.com/sizespectrum/mizerExperimental/issues>.
125+
#' <https://github.com/sizespectrum/mizer/issues>.
126126
#'
127127
#' Given a MizerParams object `params` for which yield observations are
128128
#' available for at least some species via the `yield_observed` column in the
@@ -154,7 +154,7 @@ calibrateNumber <- function(params) {
154154
calibrateYield <- function(params) {
155155
lifecycle::deprecate_warn(
156156
"2.6.0", "calibrateYield()",
157-
details = "This function has not proven useful. If you do have a use case for it, please let the developers know by creating an issue at https://github.com/sizespectrum/mizerExperimental/issues"
157+
details = "This function has not proven useful. If you do have a use case for it, please let the developers know by creating an issue at https://github.com/sizespectrum/mizer/issues"
158158
)
159159
if ((!("yield_observed" %in% names(params@species_params))) ||
160160
all(is.na(params@species_params$yield_observed))) {

R/match.R

+6-5
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,14 @@ matchNumbers <- function(params, species = NULL) {
130130
#'
131131
#' `r lifecycle::badge("deprecated")`
132132
#' This function has been deprecated and will be removed in the future unless
133-
#' you have a usecase for it. If you do have a usecase for it, please let the
133+
#' you have a usecase for it. If you do have a use case for it, please let the
134134
#' developers know by creating an issue at
135-
#' <https://github.com/sizespectrum/mizerExperimental/issues>.
135+
#' <https://github.com/sizespectrum/mizer/issues>.
136136
#'
137137
#' If you want to match the yields to observations, you should use the
138-
#' `mizerExperimental::matchYield()` function instead, which adjusts the
139-
#' catchability to match the yield rather than by adjusting the biomass.
138+
#' matchYield() function from the mizerExperimental package instead, which
139+
#' adjusts the catchability to match the yield rather than by adjusting the
140+
#' biomass.
140141
#'
141142
#' The function adjusts the abundances of the species in the model so that their
142143
#' yearly yields under the given fishing mortalities match with observations.
@@ -174,7 +175,7 @@ matchNumbers <- function(params, species = NULL) {
174175
matchYields <- function(params, species = NULL) {
175176
lifecycle::deprecate_warn(
176177
"2.6.0", "matchYields()", "mizerExperimental::matchYield()",
177-
details = "This function has not proven useful. If you do have a usecase for it, please let the developers know by creating an issue at https://github.com/sizespectrum/mizerExperimental/issues"
178+
details = "This function has not proven useful. If you do have a use case for it, please let the developers know by creating an issue at https://github.com/sizespectrum/mizer/issues"
178179
)
179180
if (!("yield_observed" %in% names(params@species_params))) {
180181
return(params)

R/selectivity_funcs.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ knife_edge <- function(w, knife_edge_size, ...) {
129129
#' Weight based sigmoidal selectivity function
130130
#'
131131
#' A sigmoidal selectivity function with 50% selectivity at
132-
#' weight `sigmoidal_weight` and width `sigmoidal_sigma`.
133-
#' \deqn{S(w) = \left(1 + \left(\frac{w}{\text{sigmoidal_weight}}\right)^{-\text{sigmoidal_sigma}}\right)^{-1}}{S(w) = (1 + (w/sigmoidal_weight)^{-sigmoidal_sigma})^{-1}}
132+
#' weight `sigmoidal_weight` \eqn{=w_{\text{sigmoid}}} and width `sigmoidal_sigma` \eqn{=\sigma}.
133+
#' \deqn{S(w) = \left(1 + \left(\frac{w}{w_{\text{sigmoid}}}\right)^{-\sigma}\right)^{-1}}{S(w) = (1 + (w/sigmoidal_weight)^{-sigmoidal_sigma})^{-1}}
134134
#'
135135
#' @param w Vector of sizes.
136136
#' @param sigmoidal_weight The weight at which the knife-edge operates.

R/setFishing.R

+1-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ setFishing <- function(params, selectivity = NULL, catchability = NULL,
287287
#' For the details see [setFishing()].
288288
#'
289289
#' There can optionally also be a column `yield_observed` that allows you to
290-
#' specify for each gear and species the total annual fisheries yield. This is
291-
#' used by [mizerExperimental::matchYield()].
290+
#' specify for each gear and species the total annual fisheries yield.
292291
#'
293292
#' The fishing effort, which is also needed to determine the fishing mortality
294293
#' exerted by a gear is not set via the `gear_params` data frame but is set

docs/reference/calibrateYield.html

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/gear_params.html

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/matchYields.html

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/sigmoid_weight.html

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/calibrateYield.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gear_params.Rd

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)