Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7483#discussion_r35064841
  
    --- Diff: R/pkg/R/mllib.R ---
    @@ -0,0 +1,65 @@
    +#
    +# Licensed to the Apache Software Foundation (ASF) under one or more
    +# contributor license agreements.  See the NOTICE file distributed with
    +# this work for additional information regarding copyright ownership.
    +# The ASF licenses this file to You under the Apache License, Version 2.0
    +# (the "License"); you may not use this file except in compliance with
    +# the License.  You may obtain a copy of the License at
    +#
    +#    http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing, software
    +# distributed under the License is distributed on an "AS IS" BASIS,
    +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +# See the License for the specific language governing permissions and
    +# limitations under the License.
    +#
    +
    +# mllib.R: Provides methods for MLlib integration
    +
    +#' @title S4 class that represents a PipelineModel
    +#' @param model A Java object reference to the backing Scala PipelineModel
    +#' @export
    +setClass("PipelineModel", representation(model = "jobj"))
    +
    +#' Fits a generalized linear model, similarly to R's glm(). Also see the 
glmnet package.
    +#' @param formula A symbolic description of the model to be fitted. 
Currently only a few formula
    +#'                operators are supported, including '~' and '+'.
    +#' @param data DataFrame for training
    +#' @param family Error distribution. "gaussian" -> linear regression, 
"binomial" -> logistic reg.
    +#' @param lambda Regularization parameter
    +#' @param alpha Elastic-net mixing parameter (see glmnet's documentation 
for details)
    +#' @return a fitted MLlib model
    --- End diff --
    
    Lets a `@rdname glm` here. Otherwise the default rdname is something like 
`glm-formula-ANY-DataFrame.Rd`.
    Also the first line of the roxygen doc becomes the title. So could you make 
the first line more succinct and then move this to the description ? See 
https://github.com/apache/spark/blob/936a96cb31a6dd7d8685bce05103e779ca02e763/R/pkg/R/RDD.R#L201
 for an example of what I mean


---
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

Reply via email to