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

add as_curve_params test #215

Merged
merged 10 commits into from
Jul 30, 2024
6 changes: 4 additions & 2 deletions R/as_curve_params.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#' as_curve_params()
#'
#' print(curve_data)

as_curve_params <- function(data, antigen_isos = NULL) {
curve_data <-
data %>%
Expand All @@ -23,7 +22,10 @@ as_curve_params <- function(data, antigen_isos = NULL) {

# check if object is curve (with columns)
if (!all(is.element(curve_cols, curve_data %>% names()))) {
cli::cli_abort("Please provide curve data")
cli::cli_abort(
class = "not curve_params",
message = c("Please provide curve data.")
d-morrison marked this conversation as resolved.
Show resolved Hide resolved
)
}

# assign curve class
Expand Down
Loading
Loading