aboutsummaryrefslogtreecommitdiff
path: root/R/check-cran.sh
diff options
context:
space:
mode:
authorJunyang Qian <junyangq@databricks.com>2016-08-10 11:18:23 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-08-10 11:18:23 -0700
commit214ba66a030bc3a718c567a742b0db44bf911d61 (patch)
tree08df168f2981e89321fbbb7418c1690c7cfc6958 /R/check-cran.sh
parentd4a9122430d6c3aeaaee32aa09d314016ff6ddc7 (diff)
downloadspark-214ba66a030bc3a718c567a742b0db44bf911d61.tar.gz
spark-214ba66a030bc3a718c567a742b0db44bf911d61.tar.bz2
spark-214ba66a030bc3a718c567a742b0db44bf911d61.zip
[SPARK-16579][SPARKR] add install.spark function
## What changes were proposed in this pull request? Add an install_spark function to the SparkR package. User can run `install_spark()` to install Spark to a local directory within R. Updates: Several changes have been made: - `install.spark()` - check existence of tar file in the cache folder, and download only if not found - trial priority of mirror_url look-up: user-provided -> preferred mirror site from apache website -> hardcoded backup option - use 2.0.0 - `sparkR.session()` - can install spark when not found in `SPARK_HOME` ## How was this patch tested? Manual tests, running the check-cran.sh script added in #14173. Author: Junyang Qian <junyangq@databricks.com> Closes #14258 from junyangq/SPARK-16579.
Diffstat (limited to 'R/check-cran.sh')
-rwxr-xr-xR/check-cran.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/check-cran.sh b/R/check-cran.sh
index b3a6860961..5c90fd07f2 100755
--- a/R/check-cran.sh
+++ b/R/check-cran.sh
@@ -47,6 +47,6 @@ $FWDIR/create-docs.sh
VERSION=`grep Version $FWDIR/pkg/DESCRIPTION | awk '{print $NF}'`
-"$R_SCRIPT_PATH/"R CMD check --as-cran --no-tests SparkR_"$VERSION".tar.gz
+"$R_SCRIPT_PATH/"R CMD check --as-cran SparkR_"$VERSION".tar.gz
popd > /dev/null