Skip to content

Commit 93926eb

Browse files
committed
remove spark bits
1 parent c0b78d1 commit 93926eb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

R/predict_linear_pred.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ predict_linear_pred.model_fit <- function(object, new_data, ...) {
3232

3333
if (is.vector(res)) {
3434
res <- unname(res)
35-
} else {
36-
if (!inherits(res, "tbl_spark"))
37-
res <- as.data.frame(res)
3835
}
36+
3937
res
4038
}
4139

R/predict_time.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ predict_time.model_fit <- function(object, new_data, ...) {
3636

3737
if (is.vector(res)) {
3838
res <- unname(res)
39-
} else {
40-
if (!inherits(res, "tbl_spark"))
41-
res <- as.data.frame(res)
4239
}
40+
4341
res
4442
}
4543

0 commit comments

Comments
 (0)