Github user junyangq commented on a diff in the pull request: https://github.com/apache/spark/pull/14705#discussion_r75427717 --- Diff: R/pkg/R/mllib.R --- @@ -917,14 +922,14 @@ setMethod("spark.lda", signature(data = "SparkDataFrame"), # Returns a summary of the AFT survival regression model produced by spark.survreg, # similarly to R's summary(). -#' @param object A fitted AFT survival regression model +#' @param object a fitted AFT survival regression model. #' @return \code{summary} returns a list containing the model's coefficients, #' intercept and log(scale) #' @rdname spark.survreg #' @export #' @note summary(AFTSurvivalRegressionModel) since 2.0.0 setMethod("summary", signature(object = "AFTSurvivalRegressionModel"), - function(object, ...) { + function(object) { --- End diff -- We have `...` for `summary`? That is used to match the `base::summary` signature. I am not completely sure about the exact reason, but I read from the [doc for Methods](https://stat.ethz.ch/R-manual/R-devel/library/methods/html/Methods.html) saying "By default, the signature of the generic consists of all the formal arguments except ..., in the order they appear in the function definition." Does that perhaps explain that behavior?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org