Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R cmd notes #692

Merged
merged 7 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Imports:
glue,
jsonlite,
methods,
purrr,
Rcpp,
rlang,
scales,
Expand All @@ -74,12 +75,11 @@ Suggests:
knitr,
mockery,
parallel,
purrr,
remotes,
rmarkdown,
snowfall,
testthat (>= 3.0.0),
tidyverse,
tidyr,
usethis,
withr
LinkingTo:
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ exportMethods(m_agecomp)
exportMethods(m_index)
exportMethods(m_landings)
exportMethods(m_lengthcomp)
exportMethods(m_weight_at_age)
import(methods)
import(stats)
importFrom(Rcpp,sourceCpp)
importFrom(TMB,MakeADFun)
importFrom(ggplot2,.data)
importFrom(methods,callGeneric)
useDynLib(FIMS, .registration = TRUE)
2 changes: 1 addition & 1 deletion R/distribution_formulas.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ get_expected_name <- function(family, data_type) {
some way.",
"i" = "{.var data_type} is {.var {data_type}}.",
"i" = "The family is {.var {family_string}}.",
"i" = "The link is {.var {link_string}}.",
"i" = "The link is {.var {link_string}}."
))
}
return(expected_name)
Expand Down
5 changes: 4 additions & 1 deletion R/fimsframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ setMethod(
#'
#' @param x The object containing weight at age data.
#' @export
#' @rdname m_weight_at_age
setGeneric("m_weight_at_age", function(x) standardGeneric("m_weight_at_age"))
#' @export
#' @rdname m_weight_at_age
setMethod(
"m_weight_at_age", "FIMSFrame",
function(x) {
Expand Down Expand Up @@ -300,7 +303,7 @@ setMethod(
setMethod(
f = "plot",
signature = "FIMSFrame",
definition = function(x) {
definition = function(x, y, ...) {
ggplot2::ggplot(
data = x@data,
mapping = ggplot2::aes(
Expand Down
3 changes: 3 additions & 0 deletions R/initialize_modules.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# To remove the WARNING
# no visible binding for global variable
utils::globalVariables(c("type", "name", "value", "unit", "uncertainty"))

#' Initialize a generic module
#'
Expand Down
170 changes: 0 additions & 170 deletions R/operators.R

This file was deleted.

Loading
Loading