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

    https://github.com/apache/spark/pull/18025#discussion_r122617405
  
    --- Diff: R/pkg/R/stats.R ---
    @@ -52,22 +52,17 @@ setMethod("crosstab",
                 collect(dataFrame(sct))
               })
     
    -#' Calculate the sample covariance of two numerical columns of a 
SparkDataFrame.
    -#'
     #' @param colName1 the name of the first column
     #' @param colName2 the name of the second column
    -#' @return The covariance of the two columns.
     #'
     #' @rdname cov
    -#' @name cov
     #' @aliases cov,SparkDataFrame-method
     #' @family stat functions
     #' @export
     #' @examples
    -#'\dontrun{
    -#' df <- read.json("/path/to/file.json")
    -#' cov <- cov(df, "title", "gender")
    -#' }
    +#'
    +#' \dontrun{
    --- End diff --
    
    No. The newline should be between `@example` and `\dontrun` to separate 
multiple `dontruns`. 
    
![image](https://user-images.githubusercontent.com/11082368/27269043-73785762-5468-11e7-9a31-5cca104e005b.png)



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