Skip to content

Commit 25639cf

Browse files
committed
Replace tabs with spaces
1 parent bb25920 commit 25639cf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pkg/R/context.R

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ parallelize <- function(sc, coll, numSlices = 1) {
8585
# TODO: bound/safeguard numSlices
8686
# TODO: unit tests for if the split works for all primitives
8787
# TODO: support matrix, data frame, etc
88-
if ((!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) {
89-
if (is.data.frame(coll)) {
90-
message(paste("context.R: A data frame is parallelized by columns."))
91-
} else {
92-
if (is.matrix(coll)) {
93-
message(paste("context.R: A matrix is parallelized by elements."))
94-
} else {
95-
message(paste("context.R: parallelize() currently only supports lists and vectors.",
96-
"Calling as.list() to coerce coll into a list."))
97-
}
98-
}
88+
if ((!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) {
89+
if (is.data.frame(coll)) {
90+
message(paste("context.R: A data frame is parallelized by columns."))
91+
} else {
92+
if (is.matrix(coll)) {
93+
message(paste("context.R: A matrix is parallelized by elements."))
94+
} else {
95+
message(paste("context.R: parallelize() currently only supports lists and vectors.",
96+
"Calling as.list() to coerce coll into a list."))
97+
}
98+
}
9999
coll <- as.list(coll)
100100
}
101101

0 commit comments

Comments
 (0)