Skip to content

Commit c13f723

Browse files
yanboliangshivaram
authored andcommitted
[SPARK-11755][R] SparkR should export "predict"
The bug described at [SPARK-11755](https://issues.apache.org/jira/browse/SPARK-11755), after exporting ```predict``` we can both get the help information from the SparkR and base R package like the following: ```Java > help(predict) Help on topic ‘predict’ was found in the following packages: Package Library SparkR /Users/yanboliang/data/trunk2/spark/R/lib stats /Library/Frameworks/R.framework/Versions/3.2/Resources/library Choose one 1: Make predictions from a model {SparkR} 2: Model Predictions {stats} ``` Author: Yanbo Liang <[email protected]> Closes #9732 from yanboliang/spark-11755. (cherry picked from commit 8fb775b) Signed-off-by: Shivaram Venkataraman <[email protected]>
1 parent 6bb613c commit c13f723

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/pkg/R/generics.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,10 @@ setGeneric("year", function(x) { standardGeneric("year") })
10541054
#' @export
10551055
setGeneric("glm")
10561056

1057+
#' @rdname predict
1058+
#' @export
1059+
setGeneric("predict", function(object, ...) { standardGeneric("predict") })
1060+
10571061
#' @rdname rbind
10581062
#' @export
10591063
setGeneric("rbind", signature = "...")

0 commit comments

Comments
 (0)