Repository: spark
Updated Branches:
  refs/heads/branch-1.6 6bb613c02 -> c13f72316


[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 8fb775ba874dd0488667bf299a7b49760062dc00)
Signed-off-by: Shivaram Venkataraman <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c13f7231
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c13f7231
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c13f7231

Branch: refs/heads/branch-1.6
Commit: c13f72316175ef1d1f32ae520a22ac656be941e9
Parents: 6bb613c
Author: Yanbo Liang <[email protected]>
Authored: Tue Nov 17 22:13:15 2015 -0800
Committer: Shivaram Venkataraman <[email protected]>
Committed: Tue Nov 17 22:13:26 2015 -0800

----------------------------------------------------------------------
 R/pkg/R/generics.R | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c13f7231/R/pkg/R/generics.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/generics.R b/R/pkg/R/generics.R
index 612e639..afdeffc 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 = "...")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to