You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/WINDOWS.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,23 @@ To build SparkR on Windows, the following steps are required
4
4
5
5
1. Install R (>= 3.1) and [Rtools](http://cran.r-project.org/bin/windows/Rtools/). Make sure to
6
6
include Rtools and R in `PATH`.
7
+
7
8
2. Install
8
9
[JDK7](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html) and set
9
10
`JAVA_HOME` in the system environment variables.
11
+
10
12
3. Download and install [Maven](http://maven.apache.org/download.html). Also include the `bin`
11
13
directory in Maven in `PATH`.
14
+
12
15
4. Set `MAVEN_OPTS` as described in [Building Spark](http://spark.apache.org/docs/latest/building-spark.html).
13
-
5. Open a command shell (`cmd`) in the Spark directory and run `mvn -DskipTests -Psparkr package`
16
+
17
+
5. Open a command shell (`cmd`) in the Spark directory and build Spark with [Maven](http://spark.apache.org/docs/latest/building-spark.html#building-with-buildmvn) and include the `-Psparkr` profile to build the R package. For example to use the default Hadoop versions you can run
18
+
19
+
```bash
20
+
mvn.cmd -DskipTests -Psparkr package
21
+
```
22
+
23
+
`.\build\mvn` is a shell script so `mvn.cmd` should be used directly on Windows.
0 commit comments