Skip to content

Commit be767f0

Browse files
committed
Remove unnecessary ...
1 parent 870279a commit be767f0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

R/pkg/R/DataFrame.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ setMethod("schema",
138138
#' @note explain since 1.4.0
139139
setMethod("explain",
140140
signature(x = "SparkDataFrame"),
141-
function(x, extended = FALSE, ...) {
141+
function(x, extended = FALSE) {
142142
queryExec <- callJMethod(x@sdf, "queryExecution")
143143
if (extended) {
144144
cat(callJMethod(queryExec, "toString"))
@@ -541,7 +541,7 @@ setMethod("registerTempTable",
541541
#' @note insertInto since 1.4.0
542542
setMethod("insertInto",
543543
signature(x = "SparkDataFrame", tableName = "character"),
544-
function(x, tableName, overwrite = FALSE, ...) {
544+
function(x, tableName, overwrite = FALSE) {
545545
jmode <- convertToJSaveMode(ifelse(overwrite, "overwrite", "append"))
546546
write <- callJMethod(x@sdf, "write")
547547
write <- callJMethod(write, "mode", jmode)
@@ -631,7 +631,7 @@ setMethod("persist",
631631
#' @note unpersist since 1.4.0
632632
setMethod("unpersist",
633633
signature(x = "SparkDataFrame"),
634-
function(x, blocking = TRUE, ...) {
634+
function(x, blocking = TRUE) {
635635
callJMethod(x@sdf, "unpersist", blocking)
636636
x@env$isCached <- FALSE
637637
x
@@ -1029,7 +1029,7 @@ setMethod("dim",
10291029
#' @note collect since 1.4.0
10301030
setMethod("collect",
10311031
signature(x = "SparkDataFrame"),
1032-
function(x, stringsAsFactors = FALSE, ...) {
1032+
function(x, stringsAsFactors = FALSE) {
10331033
dtypes <- dtypes(x)
10341034
ncol <- length(dtypes)
10351035
if (ncol <= 0) {
@@ -2802,7 +2802,7 @@ setMethod("dropna",
28022802
#' @note na.omit since 1.5.0
28032803
setMethod("na.omit",
28042804
signature(object = "SparkDataFrame"),
2805-
function(object, how = c("any", "all"), minNonNulls = NULL, cols = NULL, ...) {
2805+
function(object, how = c("any", "all"), minNonNulls = NULL, cols = NULL) {
28062806
dropna(object, how, minNonNulls, cols)
28072807
})
28082808

R/pkg/R/functions.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ setMethod("kurtosis",
845845
#' @note last since 1.4.0
846846
setMethod("last",
847847
signature(x = "characterOrColumn"),
848-
function(x, na.rm = FALSE, ...) {
848+
function(x, na.rm = FALSE) {
849849
col <- if (class(x) == "Column") {
850850
x@jc
851851
} else {
@@ -1289,7 +1289,7 @@ setMethod("round",
12891289
#' @note bround since 2.0.0
12901290
setMethod("bround",
12911291
signature(x = "Column"),
1292-
function(x, scale = 0, ...) {
1292+
function(x, scale = 0) {
12931293
jc <- callJStatic("org.apache.spark.sql.functions", "bround", x@jc, as.integer(scale))
12941294
column(jc)
12951295
})
@@ -1336,7 +1336,7 @@ setMethod("rtrim",
13361336
#' @note sd since 1.6.0
13371337
setMethod("sd",
13381338
signature(x = "Column"),
1339-
function(x, na.rm) {
1339+
function(x) {
13401340
# In R, sample standard deviation is calculated with the sd() function.
13411341
stddev_samp(x)
13421342
})
@@ -1850,7 +1850,7 @@ setMethod("upper",
18501850
#' @note var since 1.6.0
18511851
setMethod("var",
18521852
signature(x = "Column"),
1853-
function(x, y, na.rm, use) {
1853+
function(x) {
18541854
# In R, sample variance is calculated with the var() function.
18551855
var_samp(x)
18561856
})
@@ -2126,7 +2126,7 @@ setMethod("pmod", signature(y = "Column"),
21262126
#' @note approxCountDistinct(Column, numeric) since 1.4.0
21272127
setMethod("approxCountDistinct",
21282128
signature(x = "Column"),
2129-
function(x, rsd = 0.05, ...) {
2129+
function(x, rsd = 0.05) {
21302130
jc <- callJStatic("org.apache.spark.sql.functions", "approxCountDistinct", x@jc, rsd)
21312131
column(jc)
21322132
})
@@ -2695,7 +2695,7 @@ setMethod("format_string", signature(format = "character", x = "Column"),
26952695
#'}
26962696
#' @note from_unixtime since 1.5.0
26972697
setMethod("from_unixtime", signature(x = "Column"),
2698-
function(x, format = "yyyy-MM-dd HH:mm:ss", ...) {
2698+
function(x, format = "yyyy-MM-dd HH:mm:ss") {
26992699
jc <- callJStatic("org.apache.spark.sql.functions",
27002700
"from_unixtime",
27012701
x@jc, format)
@@ -2744,7 +2744,7 @@ setMethod("from_unixtime", signature(x = "Column"),
27442744
#'}
27452745
#' @note window since 2.0.0
27462746
setMethod("window", signature(x = "Column"),
2747-
function(x, windowDuration, slideDuration = NULL, startTime = NULL, ...) {
2747+
function(x, windowDuration, slideDuration = NULL, startTime = NULL) {
27482748
stopifnot(is.character(windowDuration))
27492749
if (!is.null(slideDuration) && !is.null(startTime)) {
27502750
stopifnot(is.character(slideDuration) && is.character(startTime))
@@ -2787,7 +2787,7 @@ setMethod("window", signature(x = "Column"),
27872787
#' @examples \dontrun{locate('b', df$c, 1)}
27882788
#' @note locate since 1.5.0
27892789
setMethod("locate", signature(substr = "character", str = "Column"),
2790-
function(substr, str, pos = 1, ...) {
2790+
function(substr, str, pos = 1) {
27912791
jc <- callJStatic("org.apache.spark.sql.functions",
27922792
"locate",
27932793
substr, str@jc, as.integer(pos))
@@ -3179,7 +3179,7 @@ setMethod("dense_rank",
31793179
#' @note lag since 1.6.0
31803180
setMethod("lag",
31813181
signature(x = "characterOrColumn"),
3182-
function(x, offset, defaultValue = NULL, ...) {
3182+
function(x, offset, defaultValue = NULL) {
31833183
col <- if (class(x) == "Column") {
31843184
x@jc
31853185
} else {

0 commit comments

Comments
 (0)