|
||||
0001 #!/bin/bash 0002 0003 # 0004 # Licensed to the Apache Software Foundation (ASF) under one or more 0005 # contributor license agreements. See the NOTICE file distributed with 0006 # this work for additional information regarding copyright ownership. 0007 # The ASF licenses this file to You under the Apache License, Version 2.0 0008 # (the "License"); you may not use this file except in compliance with 0009 # the License. You may obtain a copy of the License at 0010 # 0011 # http://www.apache.org/licenses/LICENSE-2.0 0012 # 0013 # Unless required by applicable law or agreed to in writing, software 0014 # distributed under the License is distributed on an "AS IS" BASIS, 0015 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0016 # See the License for the specific language governing permissions and 0017 # limitations under the License. 0018 # 0019 0020 # This scripts packages the SparkR source files (R and C files) and 0021 # creates a package that can be loaded in R. The package is by default installed to 0022 # $FWDIR/lib and the package can be loaded by using the following command in R: 0023 # 0024 # library(SparkR, lib.loc="$FWDIR/lib") 0025 # 0026 # NOTE(shivaram): Right now we use $SPARK_HOME/R/lib to be the installation directory 0027 # to load the SparkR package on the worker nodes. 0028 0029 set -o pipefail 0030 set -e 0031 0032 FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)" 0033 pushd "$FWDIR" > /dev/null 0034 . "$FWDIR/find-r.sh" 0035 0036 # Generate Rd files if devtools is installed 0037 "$R_SCRIPT_PATH/Rscript" -e ' if("devtools" %in% rownames(installed.packages())) { library(devtools); setwd("'$FWDIR'"); devtools::document(pkg="./pkg", roclets=c("rd")) }'
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |