<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=SparkR</id>
	<title>SparkR - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=SparkR"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=SparkR&amp;action=history"/>
	<updated>2026-12-06T00:08:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=SparkR&amp;diff=106&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@f2492a3</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=SparkR&amp;diff=106&amp;oldid=prev"/>
		<updated>2026-11-23T00:34:55Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@f2492a3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox software&lt;br /&gt;
| name                = SparkR&lt;br /&gt;
| developer           = [[Apache Software Foundation]] ([[Apache Spark]] project)&lt;br /&gt;
| initial_release     = Spark 1.4.0&lt;br /&gt;
| latest_release      = Spark 4.3.0&lt;br /&gt;
| latest_release_date = 2026-10-30&lt;br /&gt;
| written_in          = R, Scala&lt;br /&gt;
| type                = R language frontend for Apache Spark&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://spark.apache.org/docs/4.3.0/sparkr.html SparkR (R on Spark)]&lt;br /&gt;
| repo                = [https://github.com/apache/spark/tree/v4.3.0/R github.com/apache/spark (R/)]&lt;br /&gt;
| related             = [[Apache Spark]], [[Spark Connect]], [[MLlib]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the v4.0.0 to v4.3.0 tags of apache/spark (docs/sparkr.md, docs/sparkr-migration-guide.md, R/pkg/DESCRIPTION, R/pkg/R/zzz.R), the Spark 1.4.0, 4.0.0, 4.1.0, 4.2.0 and 4.3.0 release notes, SPARK-49347 and the August 2024 dev-list discussion and vote}}&lt;br /&gt;
{{Status|deprecated |since=Apache Spark 4.0.0 |replacement=the separately maintained sparklyr package |note=SparkR is still included in Spark 4.3.0 and has not been removed. |ref=&amp;lt;ref name=&amp;quot;jira49347&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-49347 |title=SPARK-49347: Deprecate SparkR |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SparkR&amp;#039;&amp;#039;&amp;#039; is the R package that ships with [[Apache Spark]] and lets R programs use Spark: it provides a distributed data frame, the &amp;lt;code&amp;gt;SparkDataFrame&amp;lt;/code&amp;gt;, with selection, filtering and aggregation, and access to Spark&amp;#039;s machine learning library.&amp;lt;ref name=&amp;quot;guide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/sparkr.md |title=SparkR (R on Spark) (docs/sparkr.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; SparkR is deprecated as of Spark 4.0.0 and will be removed in a future version, but it is still part of every release up to Spark 4.3.0.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;jira49347&amp;quot; /&amp;gt; The Spark project points R users to sparklyr, a separate R package for Spark.&amp;lt;ref name=&amp;quot;zzz&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/R/pkg/R/zzz.R |title=R/pkg/R/zzz.R (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
SparkR was deprecated in Spark 4.0.0 under SPARK-49347, after a vote on the Spark dev mailing list.&amp;lt;ref name=&amp;quot;jira49347&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r400&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-0-0.html |title=Spark Release 4.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The deprecation shows up in three places in Spark 4.x:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Programming guide.&amp;#039;&amp;#039;&amp;#039; The SparkR guide opens with the sentence that SparkR is deprecated from Spark 4.0.0 and will be removed in a future version.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Migration guide.&amp;#039;&amp;#039;&amp;#039; The SparkR migration guide says, under &amp;quot;Upgrading from SparkR 3.5 to 4.0&amp;quot;, that SparkR is deprecated and will be removed in a future version.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/sparkr-migration-guide.md |title=Migration Guide: SparkR (R on Spark) (docs/sparkr-migration-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Startup message.&amp;#039;&amp;#039;&amp;#039; When the package is attached, SparkR prints a warning that it is deprecated and recommends sparklyr. Setting the environment variable &amp;lt;code&amp;gt;SPARKR_SUPPRESS_DEPRECATION_WARNING&amp;lt;/code&amp;gt; to any non-empty value hides the message.&amp;lt;ref name=&amp;quot;zzz&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SparkR has not been removed. The &amp;lt;code&amp;gt;R/pkg&amp;lt;/code&amp;gt; directory is present at the v4.1.0, v4.2.0 and v4.3.0 tags, with the package version matching each Spark release.&amp;lt;ref name=&amp;quot;desc&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/R/pkg/DESCRIPTION |title=R/pkg/DESCRIPTION (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The Spark 4.1.0 release notes do not mention SparkR. The 4.2.0 release notes list maintenance work on it, such as Java 25 support and dropping support for R 3.x, and none of the 4.x release notes announce a removal.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4.1.0.html |title=Spark Release 4.1.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;r420&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-2-0.html |title=Spark Release 4.2.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-3-0.html |title=Spark Release 4.3.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Why it was deprecated ==&lt;br /&gt;
The proposal came from Shivaram Venkataraman, who created the original SparkR package as research at UC Berkeley. In an August 2024 thread on the Spark dev mailing list he argued that sparklyr is more idiomatic R than SparkR&amp;#039;s Scala-like API, that contributions to SparkR had slowed, that sparklyr&amp;#039;s newer Spark Connect based architecture removed the need to align its version with Spark&amp;#039;s, and that sparklyr is maintained on CRAN while SparkR could not stay there under Spark&amp;#039;s release process.&amp;lt;ref name=&amp;quot;discuss&amp;quot;&amp;gt;{{Cite web |url=https://lists.apache.org/thread/qjgsgxklvpvyvbzsx1qr8o533j4zjlm5 |title=[DISCUSS] Deprecating SparkR |publisher=dev@spark.apache.org |date=2024-08-12 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The vote to deprecate SparkR followed on 21 August 2024, and the deprecation was merged for Spark 4.0.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://lists.apache.org/thread/3c8qxks26kqflsjh0gtjo3nldk686vtq |title=[VOTE] Deprecate SparkR |publisher=dev@spark.apache.org |date=2024-08-21 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;jira49347&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Spark 1.4.0 was the first release to package SparkR, described in the release notes as an R binding built on Spark&amp;#039;s then-new DataFrame API.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-1-4-0.html |title=Spark Release 1.4.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The SparkR package in Spark 4.3.0 requires R 4.0 or later and Java 17 or later.&amp;lt;ref name=&amp;quot;desc&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
SparkR starts or connects to a Spark application through &amp;lt;code&amp;gt;sparkR.session()&amp;lt;/code&amp;gt;, which creates a &amp;lt;code&amp;gt;SparkSession&amp;lt;/code&amp;gt;. From RStudio or another R environment, SparkR uses &amp;lt;code&amp;gt;SPARK_HOME&amp;lt;/code&amp;gt; to find a Spark installation and can download one if none is found.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; R code talks to the Spark driver JVM through a backend in Spark core (&amp;lt;code&amp;gt;org.apache.spark.api.r.RBackend&amp;lt;/code&amp;gt;).&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/tree/v4.3.0/core/src/main/scala/org/apache/spark/api/r |title=core/src/main/scala/org/apache/spark/api/r at v4.3.0 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The guide also documents running R functions on the data with &amp;lt;code&amp;gt;dapply&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;gapply&amp;lt;/code&amp;gt;, Apache Arrow for faster transfer between the JVM and R, and MLlib model training.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following R example runs with the Spark 4.3 distribution. It starts a session, converts the built-in &amp;lt;code&amp;gt;faithful&amp;lt;/code&amp;gt; data frame to a &amp;lt;code&amp;gt;SparkDataFrame&amp;lt;/code&amp;gt; and filters it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;r&amp;quot;&amp;gt;&lt;br /&gt;
library(SparkR)&lt;br /&gt;
sparkR.session(appName = &amp;quot;faithful-example&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
df &amp;lt;- createDataFrame(faithful)&lt;br /&gt;
head(filter(df, df$waiting &amp;lt; 50))&lt;br /&gt;
&lt;br /&gt;
sparkR.session.stop()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Comparison with sparklyr ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! SparkR !! sparklyr&lt;br /&gt;
|-&lt;br /&gt;
! Maintained by&lt;br /&gt;
| The Apache Spark project, inside the Spark repository&amp;lt;ref name=&amp;quot;desc&amp;quot; /&amp;gt;&lt;br /&gt;
| A separate open source project (github.com/sparklyr/sparklyr)&amp;lt;ref name=&amp;quot;sparklyr&amp;quot;&amp;gt;{{Cite web |url=https://spark.posit.co/get-started/ |title=Get Started (sparklyr) |publisher=Posit |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Status&lt;br /&gt;
| Deprecated since Spark 4.0.0&amp;lt;ref name=&amp;quot;jira49347&amp;quot; /&amp;gt;&lt;br /&gt;
| Recommended by the SparkR startup message&amp;lt;ref name=&amp;quot;zzz&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Installation&lt;br /&gt;
| Ships with the Spark distribution; not maintained on CRAN&amp;lt;ref name=&amp;quot;discuss&amp;quot; /&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;install.packages(&amp;quot;sparklyr&amp;quot;)&amp;lt;/code&amp;gt; from CRAN&amp;lt;ref name=&amp;quot;sparklyr&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! API style&lt;br /&gt;
| Its own functions over &amp;lt;code&amp;gt;SparkDataFrame&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;filter&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;select&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;agg&amp;lt;/code&amp;gt;)&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&lt;br /&gt;
| Described in the deprecation proposal as more idiomatic R&amp;lt;ref name=&amp;quot;discuss&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Spark Connect&lt;br /&gt;
| Not a Spark Connect client; connects through the R backend in the driver&lt;br /&gt;
| &amp;lt;code&amp;gt;spark_connect(method = &amp;quot;spark_connect&amp;quot;)&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;sparklyr&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[Spark Connect]]&lt;br /&gt;
* [[MLlib]]&lt;br /&gt;
* [[GraphX]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>