Skip to content

Commit b8da7af

Browse files
authored
don't require dplyr for fortify.tbl() (#5969)
1 parent 2610840 commit b8da7af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/fortify.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ fortify.data.frame <- function(model, data, ...) model
1717
#' @export
1818
fortify.tbl_df <- function(model, data, ...) model
1919
#' @export
20-
fortify.tbl <- function(model, data, ...) {
21-
check_installed("dplyr", reason = "to work with `tbl` objects.")
22-
dplyr::collect(model)
23-
}
20+
fortify.tbl <- function(model, data, ...) as.data.frame(model)
2421
#' @export
2522
fortify.NULL <- function(model, data, ...) waiver()
2623
#' @export

0 commit comments

Comments
 (0)