aboutsummaryrefslogtreecommitdiff
path: root/R/pkg
diff options
context:
space:
mode:
authorYanbo Liang <ybliang8@gmail.com>2015-11-17 22:13:15 -0800
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-11-17 22:13:15 -0800
commit8fb775ba874dd0488667bf299a7b49760062dc00 (patch)
tree2407ad18848be9af79c6108afd709847a5b02803 /R/pkg
parent91f4b6f2db12650dfc33a576803ba8aeccf935dd (diff)
downloadspark-8fb775ba874dd0488667bf299a7b49760062dc00.tar.gz
spark-8fb775ba874dd0488667bf299a7b49760062dc00.tar.bz2
spark-8fb775ba874dd0488667bf299a7b49760062dc00.zip
[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 <ybliang8@gmail.com> Closes #9732 from yanboliang/spark-11755.
Diffstat (limited to 'R/pkg')
-rw-r--r--R/pkg/R/generics.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/R/pkg/R/generics.R b/R/pkg/R/generics.R
index 612e639f8a..afdeffc2ab 100644
--- a/R/pkg/R/generics.R
+++ b/R/pkg/R/generics.R
@@ -1054,6 +1054,10 @@ setGeneric("year", function(x) { standardGeneric("year") })
#' @export
setGeneric("glm")
+#' @rdname predict
+#' @export
+setGeneric("predict", function(object, ...) { standardGeneric("predict") })
+
#' @rdname rbind
#' @export
setGeneric("rbind", signature = "...")