Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Include check message
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoOlivoto committed Feb 11, 2020
1 parent b276ad3 commit 9d2908d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/get_model_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,9 @@ get_model_data <- function(x,
if (is.null(what)){
what <- "WAAS"
}
if (!what %in% c(check1, check2)) {
stop("Invalid value in 'what' for object of class '", class(x), "'. Allowed are ", paste(check1, collapse = ", "), call. = FALSE)
}
if (what %in% check1 | what %in% check2) {
bind <- sapply(x, function(x) {
x$model[[what]]
Expand Down

0 comments on commit 9d2908d

Please sign in to comment.