Skip to content

Commit 1f5a6ac

Browse files
committed
fixed comments
1 parent 5292be7 commit 1f5a6ac

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

pkg/R/RDD.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,14 +1275,14 @@ setMethod("aggregateRDD",
12751275
Reduce(combOp, partitionList, zeroValue)
12761276
})
12771277

1278-
#' Pipes elements to a forked externel process.
1278+
#' Pipes elements to a forked external process.
12791279
#'
12801280
#' The same as 'pipe()' in Spark.
12811281
#'
1282-
#' @param rdd The RDD whose elements are piped to the forked externel process.
1283-
#' @param command The command to fork an externel process.
1284-
#' @param env A named list to set environment variables of the externel process.
1285-
#' @return A new RDD created by piping all elements to a forked externel process.
1282+
#' @param rdd The RDD whose elements are piped to the forked external process.
1283+
#' @param command The command to fork an external process.
1284+
#' @param env A named list to set environment variables of the external process.
1285+
#' @return A new RDD created by piping all elements to a forked external process.
12861286
#' @rdname pipeRDD
12871287
#' @export
12881288
#' @examples

pkg/inst/tests/test_rdd.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ test_that("pipeRDD() on RDDs", {
341341
expected <- as.list(as.character(1:10))
342342
expect_equal(actual, expected)
343343

344+
trailed.rdd <- parallelize(sc, c("1", "", "2\n", "3\n\r\n"))
345+
actual <- collect(pipeRDD(trailed.rdd, "sort"))
346+
expected <- list("", "1", "2", "3")
347+
expect_equal(actual, expected)
348+
344349
rev.nums <- 9:0
345350
rev.rdd <- parallelize(sc, rev.nums, 2L)
346351
actual <- collect(pipeRDD(rev.rdd, "sort"))

pkg/man/pipeRDD.Rd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
\name{pipeRDD}
55
\alias{pipeRDD}
66
\alias{pipeRDD,RDD,character-method}
7-
\title{Pipes elements to a forked externel process.}
7+
\title{Pipes elements to a forked external process.}
88
\usage{
99
pipeRDD(rdd, command, env = list())
1010

1111
\S4method{pipeRDD}{RDD,character}(rdd, command, env = list())
1212
}
1313
\arguments{
14-
\item{rdd}{The RDD whose elements are piped to the forked externel process.}
14+
\item{rdd}{The RDD whose elements are piped to the forked external process.}
1515

16-
\item{command}{The command to fork an externel process.}
16+
\item{command}{The command to fork an external process.}
1717

18-
\item{env}{A named list to set environment variables of the externel process.}
18+
\item{env}{A named list to set environment variables of the external process.}
1919
}
2020
\value{
21-
A new RDD created by piping all elements to a forked externel process.
21+
A new RDD created by piping all elements to a forked external process.
2222
}
2323
\description{
2424
The same as 'pipe()' in Spark.

0 commit comments

Comments
 (0)