Permalink
Browse files

standalone assumptions must go

  • Loading branch information...
1 parent 4a2e6de commit 4bb1f7bba1d9e9d7b01c5f36c80e5a00391e25f0 @piccolbo piccolbo committed Sep 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 rmr2/pkg/tests/wordcount.R
@@ -44,9 +44,10 @@ wordcount =
combine = T)}
## @knitr end
-rmr2:::hdfs.put("/etc/passwd", "/tmp/wordcount-test")
rmr.options(backend = "local")
+file.copy("/etc/passwd", "/tmp/wordcount-test")
out.local = from.dfs(wordcount("/tmp/wordcount-test", pattern = " +"))
rmr.options(backend = "hadoop")
+rmr2:::hdfs.put("/etc/passwd", "/tmp/wordcount-test")
out.hadoop = from.dfs(wordcount("/tmp/wordcount-test", pattern = " +"))
stopifnot(rmr2:::cmp(out.hadoop, out.local))

0 comments on commit 4bb1f7b

Please sign in to comment.