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

    https://github.com/apache/spark/pull/21589#discussion_r198722972
  
    --- Diff: R/pkg/R/context.R ---
    @@ -451,3 +435,31 @@ setCheckpointDir <- function(directory) {
       sc <- getSparkContext()
       invisible(callJMethod(sc, "setCheckpointDir", 
suppressWarnings(normalizePath(directory))))
     }
    +
    +#' Total number of CPU cores of all executors registered in the cluster at 
the moment.
    +#'
    +#' @rdname spark.numCores
    +#' @return current number of cores in the cluster.
    +#' @examples
    +#'\dontrun{
    +#' spark.numCores()
    +#'}
    +#' @note numCores since 2.4.0
    --- End diff --
    
    this needs to match the function name


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to