|
||||
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 if [ -z "$R_SCRIPT_PATH" ] 0021 then 0022 if [ ! -z "$R_HOME" ] 0023 then 0024 R_SCRIPT_PATH="$R_HOME/bin" 0025 else 0026 # if system wide R_HOME is not found, then exit 0027 if [ ! `command -v R` ]; then 0028 echo "Cannot find 'R_HOME'. Please specify 'R_HOME' or make sure R is properly installed." 0029 exit 1 0030 fi 0031 R_SCRIPT_PATH="$(dirname $(which R))" 0032 fi 0033 echo "Using R_SCRIPT_PATH = ${R_SCRIPT_PATH}" 0034 fi
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |