Skip to content

Commit

Permalink
Pass ... through for report()
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Sep 26, 2020
1 parent 1429a15 commit 401eb23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ report.mdl_df <- function(object, ...){
return(glance(object))
}
else{
report(object[[mable_vars(object)[[1]]]][[1]])
report(object[[mable_vars(object)[[1]]]][[1]], ...)
}
invisible(object)
}
Expand All @@ -30,7 +30,7 @@ report.mdl_ts <- function(object, ...){
cat(paste("Transformation:", expr_name(body(object$transformation[[1]])), "\n"))
}
tryCatch(
report(object[["fit"]]),
report(object[["fit"]], ...),
error = function(e){
cat("\nA model specific report is not available for this model class.")
}
Expand Down

0 comments on commit 401eb23

Please sign in to comment.