We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4998f5b commit 58f13faCopy full SHA for 58f13fa
R/fit.R
@@ -115,6 +115,12 @@ fit.model_spec <-
115
object$engine <- engine
116
object <- check_engine(object)
117
118
+ if (engine == "spark" && !inherits(data, "tbl_spark"))
119
+ stop(
120
+ "spark objects can only be used with the formula interface to `fit` ",
121
+ "with a spark data object.", call. = FALSE
122
+ )
123
+
124
# sub in arguments to actual syntax for corresponding engine
125
object <- translate(object, engine = object$engine)
126
check_installs(object) # TODO rewrite with pkgman
0 commit comments