Rev 53037 | Rev 76496 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!@R_SHELL@## ${R_HOME}/bin/Rcmd## Shell script wrapper for all R CMD commands.## For internal use only.R_CMD="${R_HOME}/bin/Rcmd"export R_CMDR_VERSION=@PACKAGE_VERSION@export R_VERSIONR_OSTYPE="unix"export R_OSTYPE## Append 'share/texmf/...' to TeX's input search path.if test -z "${TEXINPUTS}"; thenTEXINPUTS=".:${R_SHARE_DIR}/texmf/tex/latex:"elseTEXINPUTS=".:${TEXINPUTS}:${R_SHARE_DIR}/texmf/tex/latex:"fiexport TEXINPUTSif test -z "${BIBINPUTS}"; thenBIBINPUTS=".:${R_SHARE_DIR}/texmf/bibtex/bib:"elseBIBINPUTS=".:${BIBINPUTS}:${R_SHARE_DIR}/texmf/bibtex/bib:"fiexport BIBINPUTSif test -z "${BSTINPUTS}"; thenBSTINPUTS=".:${R_SHARE_DIR}/texmf/bibtex/bst:"elseBSTINPUTS=".:${BSTINPUTS}:${R_SHARE_DIR}/texmf/bibtex/bst:"fiexport BSTINPUTS. "${R_HOME}/etc${R_ARCH}/Renviron"export `sed 's/^ *#.*//; s/^\(.*\)=.*/\1/' "${R_HOME}/etc${R_ARCH}/Renviron"`extra=case "${1}" in## this was a separate command prior to 2.10.0Rd2txt)cmd="${R_HOME}/bin/Rdconv"extra="-t txt";;## removed in 2.15.0Rd2dvi)echo "R CMD Rd2dvi is defunct: use Rd2pdf instead"exit 1;;*)if test -x "${R_HOME}/bin/${1}"; thencmd="${R_HOME}/bin/${1}"elsecmd="${1}"fi;;esacshiftexec "${cmd}" ${extra} @OSF_SH_BUG@### Local Variables: ***### mode: sh ***### sh-indentation: 2 ***### End: ***