Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/5442#discussion_r28189094
--- Diff: docs/programming-guide.md ---
@@ -743,6 +855,29 @@ def doStuff(self, rdd):
</div>
+<div data-lang="r" markdown="1">
+
+Spark's API relies heavily on passing functions in the driver program to
run on the cluster.
+There are three recommended ways to do this:
+
+* [Anonymous
functions](http://adv-r.had.co.nz/Functional-programming.html#anonymous-functions),
+ for simple functions that can be written as an anonymous function.
+* Top-level functions in a module.
+
+For example, to pass a longer function, consider the code below:
+
+{% highlight r %}
+"""MyScript.py"""
--- End diff --
MyScript.R ?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]