Skip to content

Commit

Permalink
Informs the user that pool() cannot take a mids object (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefvanbuuren committed Oct 5, 2021
1 parent 666d0e7 commit cd14b87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/as.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ as.mira <- function(fitlist) {
if (is.mira(fitlist)) {
return(fitlist)
}
if (is.mids(fitlist)) {
stop("as.mira() cannot convert class 'mids' into 'mira'. Use with() instead.")
}
call <- match.call()
if (!is.list(fitlist)) {
stop("Argument 'fitlist' is not a list")
Expand Down

0 comments on commit cd14b87

Please sign in to comment.