diff options
author | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-06-04 12:52:16 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-06-04 12:52:16 -0700 |
commit | 3dc005282a694e105f40e429b28b0a677743341f (patch) | |
tree | dbefabb3bf9640e0beaca073bac3818dd53c4658 /R/install-dev.sh | |
parent | cd3176bd86eafa09a5e11baf3636861c1f46e844 (diff) | |
download | spark-3dc005282a694e105f40e429b28b0a677743341f.tar.gz spark-3dc005282a694e105f40e429b28b0a677743341f.tar.bz2 spark-3dc005282a694e105f40e429b28b0a677743341f.zip |
[SPARK-8027] [SPARKR] Move man pages creation to install-dev.sh
This also helps us get rid of the sparkr-docs maven profile as docs are now built by just using -Psparkr when the roxygen2 package is available
Related to discussion in #6567
cc pwendell srowen -- Let me know if this looks better
Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
Closes #6593 from shivaram/sparkr-pom-cleanup and squashes the following commits:
b282241 [Shivaram Venkataraman] Remove sparkr-docs from release script as well
8f100a5 [Shivaram Venkataraman] Move man pages creation to install-dev.sh This also helps us get rid of the sparkr-docs maven profile as docs are now built by just using -Psparkr when the roxygen2 package is available
Diffstat (limited to 'R/install-dev.sh')
-rwxr-xr-x | R/install-dev.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/R/install-dev.sh b/R/install-dev.sh index b9e2527035..1edd551f8d 100755 --- a/R/install-dev.sh +++ b/R/install-dev.sh @@ -34,5 +34,12 @@ LIB_DIR="$FWDIR/lib" mkdir -p $LIB_DIR -# Install R +pushd $FWDIR + +# Generate Rd files if devtools is installed +Rscript -e ' if("devtools" %in% rownames(installed.packages())) { library(devtools); devtools::document(pkg="./pkg", roclets=c("rd")) }' + +# Install SparkR to $LIB_DIR R CMD INSTALL --library=$LIB_DIR $FWDIR/pkg/ + +popd |