diff options
author | wm624@hotmail.com <wm624@hotmail.com> | 2017-03-29 21:38:26 -0700 |
---|---|---|
committer | Felix Cheung <felixcheung@apache.org> | 2017-03-29 21:38:26 -0700 |
commit | 471de5db53ed77711523a3f016d6e9c530b651e5 (patch) | |
tree | 99912a38fb57194b98dc5096db161c1c0d212603 /examples | |
parent | 79636054f60dd639e9d326e1328717e97df13304 (diff) | |
download | spark-471de5db53ed77711523a3f016d6e9c530b651e5.tar.gz spark-471de5db53ed77711523a3f016d6e9c530b651e5.tar.bz2 spark-471de5db53ed77711523a3f016d6e9c530b651e5.zip |
[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 <wm624@hotmail.com>
Closes #17474 from wangmiao1981/stat.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/main/r/RSparkSQLExample.R | 3 | ||||
-rw-r--r-- | examples/src/main/r/dataframe.R | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/src/main/r/RSparkSQLExample.R b/examples/src/main/r/RSparkSQLExample.R index e647f0e1e9..3734568d87 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$ diff --git a/examples/src/main/r/dataframe.R b/examples/src/main/r/dataframe.R index 82b85f2f59..311350497f 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 |