Repository: spark Updated Branches: refs/heads/branch-2.0 ba71cf451 -> d96e8c2dd
[MINOR][SPARKR] Fix arguments of survreg in SparkR ## What changes were proposed in this pull request? Fix wrong arguments description of ```survreg``` in SparkR. ## How was this patch tested? ```Arguments``` section of ```survreg``` doc before this PR (with wrong description for ```path``` and missing ```overwrite```): ![image](https://cloud.githubusercontent.com/assets/1962026/16447548/fe7a5ed4-3da1-11e6-8b96-b5bf2083b07e.png) After this PR: ![image](https://cloud.githubusercontent.com/assets/1962026/16447617/368e0b18-3da2-11e6-8277-45640fb11859.png) Author: Yanbo Liang <yblia...@gmail.com> Closes #13970 from yanboliang/spark-16143-followup. (cherry picked from commit c6a220d756f23ee89a0d1366b20259890c9d67c9) Signed-off-by: Xiangrui Meng <m...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d96e8c2d Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d96e8c2d Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d96e8c2d Branch: refs/heads/branch-2.0 Commit: d96e8c2dd0a9949751d3074b6ab61eee12f5d622 Parents: ba71cf4 Author: Yanbo Liang <yblia...@gmail.com> Authored: Wed Jun 29 11:20:35 2016 -0700 Committer: Xiangrui Meng <m...@databricks.com> Committed: Wed Jun 29 11:20:41 2016 -0700 ---------------------------------------------------------------------- R/pkg/R/mllib.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/d96e8c2d/R/pkg/R/mllib.R ---------------------------------------------------------------------- diff --git a/R/pkg/R/mllib.R b/R/pkg/R/mllib.R index 8e6c2dd..897a376 100644 --- a/R/pkg/R/mllib.R +++ b/R/pkg/R/mllib.R @@ -442,11 +442,11 @@ setMethod("write.ml", signature(object = "NaiveBayesModel", path = "character"), # Saves the AFT survival regression model to the input path. -#' @param path The directory where the model is savedist containing the model's coefficien +#' @param path The directory where the model is saved +#' @param overwrite Overwrites or not if the output path already exists. Default is FALSE #' which means throw exception if the output path exists. #' #' @rdname spark.survreg -#' @name write.ml #' @export #' @note write.ml(AFTSurvivalRegressionModel, character) since 2.0.0 #' @seealso \link{read.ml} --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org