Repository: spark Updated Branches: refs/heads/master 79636054f -> 471de5db5
[MINOR][SPARKR] Add run command comment in examples ## What changes were proposed in this pull request? There are two examples in r folder missing the run commands. In this PR, I just add the missing comment, which is consistent with other examples. ## How was this patch tested? Manual test. Author: wm...@hotmail.com <wm...@hotmail.com> Closes #17474 from wangmiao1981/stat. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/471de5db Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/471de5db Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/471de5db Branch: refs/heads/master Commit: 471de5db53ed77711523a3f016d6e9c530b651e5 Parents: 7963605 Author: wm...@hotmail.com <wm...@hotmail.com> Authored: Wed Mar 29 21:38:26 2017 -0700 Committer: Felix Cheung <felixche...@apache.org> Committed: Wed Mar 29 21:38:26 2017 -0700 ---------------------------------------------------------------------- examples/src/main/r/RSparkSQLExample.R | 3 +++ examples/src/main/r/dataframe.R | 3 +++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/471de5db/examples/src/main/r/RSparkSQLExample.R ---------------------------------------------------------------------- diff --git a/examples/src/main/r/RSparkSQLExample.R b/examples/src/main/r/RSparkSQLExample.R index e647f0e..3734568 100644 --- a/examples/src/main/r/RSparkSQLExample.R +++ b/examples/src/main/r/RSparkSQLExample.R @@ -15,6 +15,9 @@ # limitations under the License. # +# To run this example use +# ./bin/spark-submit examples/src/main/r/RSparkSQLExample.R + library(SparkR) # $example on:init_session$ http://git-wip-us.apache.org/repos/asf/spark/blob/471de5db/examples/src/main/r/dataframe.R ---------------------------------------------------------------------- diff --git a/examples/src/main/r/dataframe.R b/examples/src/main/r/dataframe.R index 82b85f2..3113504 100644 --- a/examples/src/main/r/dataframe.R +++ b/examples/src/main/r/dataframe.R @@ -15,6 +15,9 @@ # limitations under the License. # +# To run this example use +# ./bin/spark-submit examples/src/main/r/dataframe.R + library(SparkR) # Initialize SparkSession --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org