Skip to content
Open
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
20 changes: 10 additions & 10 deletions R/convert_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#'
Expand All @@ -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.
#'
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-convert_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down