forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from apache/master
Merge latest code to my branch
- Loading branch information
Showing
1,490 changed files
with
63,901 additions
and
21,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,9 +421,6 @@ Copyright (c) 2011, Terrence Parr. | |
This product includes/uses ASM (http://asm.ow2.org/), | ||
Copyright (c) 2000-2007 INRIA, France Telecom. | ||
|
||
This product includes/uses org.json (http://www.json.org/java/index.html), | ||
Copyright (c) 2002 JSON.org | ||
|
||
This product includes/uses JLine (http://jline.sourceforge.net/), | ||
Copyright (c) 2002-2006, Marc Prud'hommeaux <[email protected]>. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# SparkR CRAN Release | ||
|
||
To release SparkR as a package to CRAN, we would use the `devtools` package. Please work with the | ||
`[email protected]` community and R package maintainer on this. | ||
|
||
### Release | ||
|
||
First, check that the `Version:` field in the `pkg/DESCRIPTION` file is updated. Also, check for stale files not under source control. | ||
|
||
Note that while `check-cran.sh` is running `R CMD check`, it is doing so with `--no-manual --no-vignettes`, which skips a few vignettes or PDF checks - therefore it will be preferred to run `R CMD check` on the source package built manually before uploading a release. | ||
|
||
To upload a release, we would need to update the `cran-comments.md`. This should generally contain the results from running the `check-cran.sh` script along with comments on status of all `WARNING` (should not be any) or `NOTE`. As a part of `check-cran.sh` and the release process, the vignettes is build - make sure `SPARK_HOME` is set and Spark jars are accessible. | ||
|
||
Once everything is in place, run in R under the `SPARK_HOME/R` directory: | ||
|
||
```R | ||
paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); devtools::release(); .libPaths(paths) | ||
``` | ||
|
||
For more information please refer to http://r-pkgs.had.co.nz/release.html#release-check | ||
|
||
### Testing: build package manually | ||
|
||
To build package manually such as to inspect the resulting `.tar.gz` file content, we would also use the `devtools` package. | ||
|
||
Source package is what get released to CRAN. CRAN would then build platform-specific binary packages from the source package. | ||
|
||
#### Build source package | ||
|
||
To build source package locally without releasing to CRAN, run in R under the `SPARK_HOME/R` directory: | ||
|
||
```R | ||
paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); devtools::build("pkg"); .libPaths(paths) | ||
``` | ||
|
||
(http://r-pkgs.had.co.nz/vignettes.html#vignette-workflow-2) | ||
|
||
Similarly, the source package is also created by `check-cran.sh` with `R CMD build pkg`. | ||
|
||
For example, this should be the content of the source package: | ||
|
||
```sh | ||
DESCRIPTION R inst tests | ||
NAMESPACE build man vignettes | ||
|
||
inst/doc/ | ||
sparkr-vignettes.html | ||
sparkr-vignettes.Rmd | ||
sparkr-vignettes.Rman | ||
|
||
build/ | ||
vignette.rds | ||
|
||
man/ | ||
*.Rd files... | ||
|
||
vignettes/ | ||
sparkr-vignettes.Rmd | ||
``` | ||
|
||
#### Test source package | ||
|
||
To install, run this: | ||
|
||
```sh | ||
R CMD INSTALL SparkR_2.1.0.tar.gz | ||
``` | ||
|
||
With "2.1.0" replaced with the version of SparkR. | ||
|
||
This command installs SparkR to the default libPaths. Once that is done, you should be able to start R and run: | ||
|
||
```R | ||
library(SparkR) | ||
vignette("sparkr-vignettes", package="SparkR") | ||
``` | ||
|
||
#### Build binary package | ||
|
||
To build binary package locally, run in R under the `SPARK_HOME/R` directory: | ||
|
||
```R | ||
paths <- .libPaths(); .libPaths(c("lib", paths)); Sys.setenv(SPARK_HOME=tools::file_path_as_absolute("..")); devtools::build("pkg", binary = TRUE); .libPaths(paths) | ||
``` | ||
|
||
For example, this should be the content of the binary package: | ||
|
||
```sh | ||
DESCRIPTION Meta R html tests | ||
INDEX NAMESPACE help profile worker | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: SparkR | ||
Type: Package | ||
Title: R Frontend for Apache Spark | ||
Version: 2.0.0 | ||
Date: 2016-08-27 | ||
Version: 2.1.0 | ||
Date: 2016-11-06 | ||
Authors@R: c(person("Shivaram", "Venkataraman", role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
person("Xiangrui", "Meng", role = "aut", | ||
|
@@ -11,14 +11,16 @@ Authors@R: c(person("Shivaram", "Venkataraman", role = c("aut", "cre"), | |
email = "[email protected]"), | ||
person(family = "The Apache Software Foundation", role = c("aut", "cph"))) | ||
URL: http://www.apache.org/ http://spark.apache.org/ | ||
BugReports: https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark#ContributingtoSpark-ContributingBugReports | ||
BugReports: http://spark.apache.org/contributing.html | ||
Depends: | ||
R (>= 3.0), | ||
methods | ||
Suggests: | ||
testthat, | ||
e1071, | ||
survival | ||
survival, | ||
knitr, | ||
rmarkdown | ||
Description: The SparkR package provides an R frontend for Apache Spark. | ||
License: Apache License (== 2.0) | ||
Collate: | ||
|
@@ -48,3 +50,4 @@ Collate: | |
'utils.R' | ||
'window.R' | ||
RoxygenNote: 5.0.1 | ||
VignetteBuilder: knitr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.