Skip to content

Commit abaf02e

Browse files
author
Sun Rui
committed
Change the type of default numPartitions from integer to numeric in generics.R.
1 parent 29d67c1 commit abaf02e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/pkg/R/generics.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ setGeneric("countByValue", function(x) { standardGeneric("countByValue") })
6060

6161
#' @rdname distinct
6262
#' @export
63-
setGeneric("distinct", function(x, numPartitions = 1L) { standardGeneric("distinct") })
63+
setGeneric("distinct", function(x, numPartitions = 1) { standardGeneric("distinct") })
6464

6565
#' @rdname filterRDD
6666
#' @export
@@ -182,7 +182,7 @@ setGeneric("setName", function(x, name) { standardGeneric("setName") })
182182
#' @rdname sortBy
183183
#' @export
184184
setGeneric("sortBy",
185-
function(x, func, ascending = TRUE, numPartitions = 1L) {
185+
function(x, func, ascending = TRUE, numPartitions = 1) {
186186
standardGeneric("sortBy")
187187
})
188188

@@ -244,7 +244,7 @@ setGeneric("flatMapValues", function(X, FUN) { standardGeneric("flatMapValues")
244244

245245
#' @rdname intersection
246246
#' @export
247-
setGeneric("intersection", function(x, other, numPartitions = 1L) {
247+
setGeneric("intersection", function(x, other, numPartitions = 1) {
248248
standardGeneric("intersection") })
249249

250250
#' @rdname keys
@@ -346,21 +346,21 @@ setGeneric("rightOuterJoin", function(x, y, numPartitions) { standardGeneric("ri
346346
#' @rdname sortByKey
347347
#' @export
348348
setGeneric("sortByKey",
349-
function(x, ascending = TRUE, numPartitions = 1L) {
349+
function(x, ascending = TRUE, numPartitions = 1) {
350350
standardGeneric("sortByKey")
351351
})
352352

353353
#' @rdname subtract
354354
#' @export
355355
setGeneric("subtract",
356-
function(x, other, numPartitions = 1L) {
356+
function(x, other, numPartitions = 1) {
357357
standardGeneric("subtract")
358358
})
359359

360360
#' @rdname subtractByKey
361361
#' @export
362362
setGeneric("subtractByKey",
363-
function(x, other, numPartitions = 1L) {
363+
function(x, other, numPartitions = 1) {
364364
standardGeneric("subtractByKey")
365365
})
366366

0 commit comments

Comments
 (0)