Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-11755] [R] SparkR should export "predict" #9732

Closed
wants to merge 2 commits into from

Conversation

yanboliang
Copy link
Contributor

The bug described at SPARK-11755, after exporting predict we can both get the help information from the SparkR and base R package like the following:

> help(predict)
Help on topicpredictwas 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}

@yanboliang
Copy link
Contributor Author

@mengxr @shivaram @sun-rui

@SparkQA
Copy link

SparkQA commented Nov 16, 2015

Test build #45993 has finished for PR 9732 at commit 09998a3.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -1054,6 +1054,10 @@ setGeneric("year", function(x) { standardGeneric("year") })
#' @export
setGeneric("glm")

#' @rdname predict
#' @export
setGeneric("predict", function(object, newData) { standardGeneric("predict") })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be better to keep the signature of "predict" to be same as that in R base.

setGeneric("predict", function(object, ...) { standardGeneric("predict") })

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we should follow the same signature

@SparkQA
Copy link

SparkQA commented Nov 17, 2015

Test build #46087 has finished for PR 9732 at commit 3012bfd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

LGTM

1 similar comment
@sun-rui
Copy link
Contributor

sun-rui commented Nov 18, 2015

LGTM

@shivaram
Copy link
Contributor

Merging this to master, branch-1.6

asfgit pushed a commit that referenced this pull request Nov 18, 2015
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.

(cherry picked from commit 8fb775b)
Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
@asfgit asfgit closed this in 8fb775b Nov 18, 2015
@yanboliang yanboliang deleted the spark-11755 branch November 18, 2015 11:40
@yanboliang
Copy link
Contributor Author

@shivaram @sun-rui Thanks for your review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants