From 2480868db7692251e114e8cef73c9e300214f019 Mon Sep 17 00:00:00 2001 From: sbreitbart-NOAA <181890943+sbreitbart-NOAA@users.noreply.github.com> Date: Tue, 24 Nov 2026 17:47:55 +0000 Subject: [PATCH] style and docs: run devtools::document() and style with styler or air --- R/convert_output.R | 20 ++++++++++---------- tests/testthat/test-convert_output.R | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/R/convert_output.R b/R/convert_output.R index adfc503d..c5304670 100644 --- a/R/convert_output.R +++ b/R/convert_output.R @@ -9,8 +9,8 @@ #' appended together. #' #' `names(files)` will be used as the name of the model in the output. -#' -#' @param file `r lifecycle::badge('deprecated')` +#' +#' @param file `r lifecycle::badge('deprecated')` #' This argument was deprecated in favor of the `files` argument in order #' to clarify that multiple files can be processed simultaneously. #' @@ -21,8 +21,8 @@ #' Options: "ss3", "bam", "fims", "rceattle" #' #' Should match length of `files` if >1 model. -#' -#' @param model `r lifecycle::badge('deprecated')` +#' +#' @param model `r lifecycle::badge('deprecated')` #' This argument was deprecated in favor of the `models` argument in order #' to clarify that multiple models can be processed simultaneously. #' @@ -99,20 +99,20 @@ convert_output <- function( # check for used deprecated arguments if (lifecycle::is_present(file)) { lifecycle::deprecate_warn( - when = "0.16.0", - what = "convert_output(file)", + when = "0.16.0", + what = "convert_output(file)", details = "Please use `files` instead of `file`" ) - + files <- file } if (lifecycle::is_present(model)) { lifecycle::deprecate_warn( - when = "0.16.0", - what = "convert_output(model)", + when = "0.16.0", + what = "convert_output(model)", details = "Please use `models` instead of `model`" ) - + models <- model } # Is user inputs a single model file and doesn't wrap it as a list object diff --git a/tests/testthat/test-convert_output.R b/tests/testthat/test-convert_output.R index 7a17a196..c2485d8a 100644 --- a/tests/testthat/test-convert_output.R +++ b/tests/testthat/test-convert_output.R @@ -73,7 +73,7 @@ test_that("missing arguments trigger warnings or errors", { ), "`file` not found." ) - + dir.create(fs::path("fixtures", "ss3_models_converted", "Hake_2018"), recursive = TRUE) expect_error(