aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests
diff options
context:
space:
mode:
authorFelix Cheung <felixcheung_m@hotmail.com>2016-07-13 15:09:23 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-07-13 15:09:23 -0700
commitfb2e8eeb0b1e56bea535165f7a3bec6558b3f4a3 (patch)
tree6a99fcdae0d27149a93b7b2a48ffef5480579b20 /R/pkg/inst/tests
parentb4baf086ca380a46d953f2710184ad9eee3a045e (diff)
downloadspark-fb2e8eeb0b1e56bea535165f7a3bec6558b3f4a3.tar.gz
spark-fb2e8eeb0b1e56bea535165f7a3bec6558b3f4a3.tar.bz2
spark-fb2e8eeb0b1e56bea535165f7a3bec6558b3f4a3.zip
[SPARKR][DOCS][MINOR] R programming guide to include csv data source example
## What changes were proposed in this pull request? Minor documentation update for code example, code style, and missed reference to "sparkR.init" ## How was this patch tested? manual shivaram Author: Felix Cheung <felixcheung_m@hotmail.com> Closes #14178 from felixcheung/rcsvprogrammingguide.
Diffstat (limited to 'R/pkg/inst/tests')
-rw-r--r--R/pkg/inst/tests/testthat/test_sparkSQL.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_sparkSQL.R b/R/pkg/inst/tests/testthat/test_sparkSQL.R
index fdd6020db9..e61fa41cdd 100644
--- a/R/pkg/inst/tests/testthat/test_sparkSQL.R
+++ b/R/pkg/inst/tests/testthat/test_sparkSQL.R
@@ -237,7 +237,7 @@ test_that("read csv as DataFrame", {
"Empty,Dummy,Placeholder")
writeLines(mockLinesCsv, csvPath)
- df2 <- read.df(csvPath, "csv", header = "true", inferSchema = "true", na.string = "Empty")
+ df2 <- read.df(csvPath, "csv", header = "true", inferSchema = "true", na.strings = "Empty")
expect_equal(count(df2), 4)
withoutna2 <- na.omit(df2, how = "any", cols = "year")
expect_equal(count(withoutna2), 3)