You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by fe...@apache.org on 2017/03/30 04:38:29 UTC

spark git commit: [MINOR][SPARKR] Add run command comment in examples

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: wm624@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: wm624@hotmail.com <wm...@hotmail.com>
Authored: Wed Mar 29 21:38:26 2017 -0700
Committer: Felix Cheung <fe...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org