Skip to content
Browse files

Rename RHOME to R_HOME.

git-svn-id: https://svn.r-project.org/R/trunk@4580 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
1 parent 9960d11 commit 3f7418701dc557f6d7d57b3da6a32cacc27272e5 hornik committed May 11, 1999
Showing with 256 additions and 267 deletions.
  1. +3 −3 Makefile.in
  2. +1 −1 afm/Makefile.in
  3. +36 −34 configure.mac
  4. +9 −8 configure.win
  5. +1 −1 debian/rules
  6. +1 −1 demos/Makefile.in
  7. +2 −2 demos/dynload/zero.R
  8. +1 −1 doc/Makefile.in
  9. +5 −9 doc/keyword-test.in
  10. +1 −1 doc/manual/Makefile.in
  11. +1 −1 doc/manual/Rd2dvi.tex
  12. +2 −2 doc/manual/writing-Rd.tex
  13. +2 −2 etc/Makeconf.in
  14. +1 −1 etc/Makefile.in
  15. +1 −1 etc/Rdconvlib.pl
  16. +7 −7 etc/buildlib.pl
  17. +1 −1 etc/html-layout.pl
  18. +1 −1 src/Makefile.in
  19. +1 −1 src/appl/Makefile.in
  20. +1 −1 src/gnome/Makefile.in
  21. +24 −25 src/gnome/system.c
  22. +1 −1 src/include/Makefile.in
  23. +1 −1 src/include/README
  24. +11 −12 src/library/Makefile.in
  25. +1 −1 src/library/base/INDEX
  26. +1 −1 src/library/base/Makefile.in
  27. +1 −1 src/library/base/R/read.R
  28. +1 −1 src/library/base/R/system.unix.R
  29. +1 −1 src/library/base/man/INSTALL.Rd
  30. +5 −4 src/library/base/man/REMOVE.Rd
  31. +3 −2 src/library/base/man/RHOME.Rd
  32. +1 −1 src/library/base/man/contour.Rd
  33. +1 −1 src/library/base/man/copyright.Rd
  34. +1 −1 src/library/base/man/deriv.Rd
  35. +1 −1 src/library/base/man/getenv.Rd
  36. +12 −11 src/library/base/man/help.start.Rd
  37. +1 −1 src/library/base/man/license.Rd
  38. +1 −1 src/library/base/man/options.Rd
  39. +2 −2 src/library/base/man/prompt.Rd
  40. +1 −1 src/library/base/man/read.fwf.Rd
  41. +1 −1 src/library/eda/Makefile.in
  42. +2 −2 src/library/eda/src/Makefile.in
  43. +1 −1 src/library/lqs/Makefile.in
  44. +2 −3 src/library/lqs/src/Makefile.in
  45. +1 −1 src/library/modreg/Makefile.in
  46. +2 −2 src/library/modreg/src/Makefile.in
  47. +1 −1 src/library/mva/Makefile.in
  48. +2 −3 src/library/mva/src/Makefile.in
  49. +1 −1 src/library/profile/Makefile.in
  50. +1 −1 src/library/stepfun/Makefile.in
  51. +1 −1 src/main/Makefile.in
  52. +1 −1 src/nmath/Makefile.in
  53. +2 −2 src/scripts/BATCH
  54. +3 −3 src/scripts/COMPILE.in
  55. +11 −11 src/scripts/INSTALL.in
  56. +2 −2 src/scripts/Makefile.in
  57. +7 −9 src/scripts/R.sh.in
  58. +5 −5 src/scripts/REMOVE.in
  59. +3 −3 src/scripts/Rd2dvi
  60. +3 −3 src/scripts/Rd2txt
  61. +6 −6 src/scripts/Rdconv.in
  62. +2 −2 src/scripts/SHLIB.in
  63. +18 −18 src/scripts/build-help.in
  64. +1 −1 src/scripts/filename
  65. +1 −1 src/scripts/help
  66. +14 −14 src/scripts/help.links
  67. +3 −3 src/scripts/massage-Examples
  68. +1 −1 src/unix/Makefile.in
  69. +1 −5 src/unix/devPS.c
  70. +1 −1 tests/Examples/Makefile.in
  71. +2 −5 tests/Makefile.in
  72. +5 −5 tools/GETSYMBOLS
View
6 Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/Makefile
+# ${R_HOME}/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -50,8 +50,8 @@ install: all installdirs
done)
@echo "Installing executables ..."
@$(INSTALL_PROGRAM) bin/R.binary $(rhome)/bin
- @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(rhome)/bin/R
- @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(bindir)/R
+ @cat bin/R | sed "s@R_HOME=.*@R_HOME=$(rhome)@" > $(rhome)/bin/R
+ @cat bin/R | sed "s@R_HOME=.*@R_HOME=$(rhome)@" > $(bindir)/R
@chmod 755 $(bindir)/R $(rhome)/bin/R
@for f in `ls bin/* | grep -v '^bin/\(R\|R.binary\)\**$$'`; do \
$(INSTALL) $${f} $(rhome)/bin; \
View
2 afm/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/afm/Makefile
+# ${R_HOME}/afm/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
70 configure.mac
@@ -10,37 +10,37 @@
# bu hand.
-RHOME=`pwd`
-MHOME=`pwd`/Macintosh
+R_HOME=`pwd`
+M_HOME=`pwd`/Macintosh
# Remove any prior version
echo "Removing previous source tree"
-rm -rf $MHOME
+rm -rf ${M_HOME}
# (1) Create the directory structure
echo "Creating directory structure"
-mkdir $MHOME
-mkdir $MHOME/library
-mkdir $MHOME/library/base
-mkdir $MHOME/library/base/R
-mkdir $MHOME/src
-mkdir $MHOME/src/include
-mkdir $MHOME/src/appl
-mkdir $MHOME/src/main
-mkdir $MHOME/src/nmath
-mkdir $MHOME/src/f2clib
-mkdir $MHOME/src/regex
+mkdir ${M_HOME}
+mkdir ${M_HOME}/library
+mkdir ${M_HOME}/library/base
+mkdir ${M_HOME}/library/base/R
+mkdir ${M_HOME}/src
+mkdir ${M_HOME}/src/include
+mkdir ${M_HOME}/src/appl
+mkdir ${M_HOME}/src/main
+mkdir ${M_HOME}/src/nmath
+mkdir ${M_HOME}/src/f2clib
+mkdir ${M_HOME}/src/regex
# (2) Create the basic include files needed for compilation
echo "Installing include files"
-cp $RHOME/src/include/*.h $MHOME/src/include
-cp $RHOME/src/macintosh/Platform.h $MHOME/src/include
+cp ${R_HOME}/src/include/*.h ${M_HOME}/src/include
+cp ${R_HOME}/src/macintosh/Platform.h ${M_HOME}/src/include
# This code assembles the table of statically loaded C and Fortran
# code which is to be accessed via .C and .Fortran calls.
@@ -50,13 +50,13 @@ sed '
/Rsock/d
s/F77_SUBROUTINE(\(.*\))/int \1_();/
s/C_FUNCTION(\(.*\))/int \1();/
-' $RHOME/src/appl/ROUTINES > $MHOME/src/include/FFDecl.h
+' ${R_HOME}/src/appl/ROUTINES > ${M_HOME}/src/include/FFDecl.h
sed '
/^#/d
/Rsock/d
s/F77_SUBROUTINE(\(.*\))/ "\1_", \1_,/
s/C_FUNCTION(\(.*\))/ "\1", \1,/
-' $RHOME/src/appl/ROUTINES > $MHOME/src/include/FFTab.h
+' ${R_HOME}/src/appl/ROUTINES > ${M_HOME}/src/include/FFTab.h
# (3) C and Fortran Code
@@ -66,18 +66,18 @@ echo "Copying C and Fortran code"
echo "Converting Fortran with f2c"
-cp $RHOME/src/appl/*.[chf] $MHOME/src/appl
-cd $MHOME/src/appl
+cp ${R_HOME}/src/appl/*.[chf] ${M_HOME}/src/appl
+cd ${M_HOME}/src/appl
f2c *.f 2> /dev/null
rm *.f
-cd $RHOME
-
-cp $RHOME/src/main/*.[chy] $MHOME/src/main
-cp $RHOME/src/nmath/*.[chy] $MHOME/src/nmath
-cp $RHOME/src/regex/*.[chy] $MHOME/src/regex
-cp $RHOME/src/f2clib/*.[chy] $MHOME/src/f2clib
-cp $RHOME/src/main/*.[chy] $MHOME/src/main
-cd $MHOME/src/main
+cd ${R_HOME}
+
+cp ${R_HOME}/src/main/*.[chy] ${M_HOME}/src/main
+cp ${R_HOME}/src/nmath/*.[chy] ${M_HOME}/src/nmath
+cp ${R_HOME}/src/regex/*.[chy] ${M_HOME}/src/regex
+cp ${R_HOME}/src/f2clib/*.[chy] ${M_HOME}/src/f2clib
+cp ${R_HOME}/src/main/*.[chy] ${M_HOME}/src/main
+cd ${M_HOME}/src/main
byacc gram.y
mv y.tab.c gram.c
rm gram.y
@@ -86,22 +86,24 @@ rm gram.y
echo "Interpreted function libraries"
-cd $RHOME/src/library/base/R
-cat `ls *.R | sed '/system.*/d'` system.mac.R > $MHOME/library/base/R/base
-cat $RHOME/src/library/profile/Common.R \
- $RHOME/src/library/profile/Rprofile.mac > $MHOME/library/base/R/Rprofile
+cd ${R_HOME}/src/library/base/R
+cat `ls *.R | sed '/system.*/d'` system.mac.R \
+ > ${M_HOME}/library/base/R/base
+cat ${R_HOME}/src/library/profile/Common.R \
+ ${R_HOME}/src/library/profile/Rprofile.mac \
+ > ${M_HOME}/library/base/R/Rprofile
# (5) Manual entries etc (just grab the unix ones for now)
echo "Manual entries, examples and data"
-cd $RHOME
+cd ${R_HOME}
cp -R library/LibIndex Macintosh/library
cp -R library/base/INDEX Macintosh/library/base
cp -R library/base/data Macintosh/library/base
cp -R library/base/R-ex Macintosh/library/base
mkdir Macintosh/library/base/help
-for i in `ls $RHOME/library/base/help`
+for i in `ls ${R_HOME}/library/base/help`
do
sed 's/.//g' library/base/help/$i > Macintosh/library/base/help/$i
done
View
17 configure.win
@@ -1,16 +1,16 @@
#!/bin/sh
-RHOME=`pwd`
+R_HOME=`pwd`
-cp $RHOME/src/windows/Platform.h $RHOME/src/include
-cp $RHOME/src/unix/PostScript.c $RHOME/src/windows/PostScript.c
-cp $RHOME/src/unix/devPS.c $RHOME/src/windows/devPS.c
+cp ${R_HOME}/src/windows/Platform.h ${R_HOME}/src/include
+cp ${R_HOME}/src/unix/PostScript.c ${R_HOME}/src/windows/PostScript.c
+cp ${R_HOME}/src/unix/devPS.c ${R_HOME}/src/windows/devPS.c
# This code assembles the table of statically loaded C and Fortran
# code which is to be accessed via .C and .Fortran calls.
-cd $RHOME/src
+cd ${R_HOME}/src
#we take only the C source for windows
@@ -20,7 +20,7 @@ sh GETSYMBOLS
# Create the library of interpreted functions
-cd $RHOME/src/library/base/funs
+cd ${R_HOME}/src/library/base/funs
mkdir -p ../../../library/base/R
cat `ls R/[a-z]* | sed '/CVS/d; /~$$/d; /\.orig$$/d; \
/\.bak$$/d; /^core$$/d; /system.*/d'` R/system.win| \
@@ -30,7 +30,8 @@ cp INDEX TITLE ../../../library/base
mkdir -p ../../../library/base/data
cp `ls data/[a-z]*` ../../../library/base/data
-cd $RHOME/etc
+cd ${R_HOME}/etc
make install-html
-cp $RHOME/src/library/profile/Rprofile.win $RHOME/library/base/R/Rprofile
+cp ${R_HOME}/src/library/profile/Rprofile.win \
+ ${R_HOME}/library/base/R/Rprofile
View
2 debian/rules
@@ -33,7 +33,7 @@ binary-arch: build
dh_clean -k
dh_installdirs
make install prefix=`pwd`/debian/tmp/usr
- sed -e '/^RHOME=.*/s::RHOME=/usr/lib/R:' \
+ sed -e '/^R_HOME=.*/s::R_HOME=/usr/lib/R:' \
-e '/R.binary /s::R.binary --vsize 8M --nsize 400000 :'\
< bin/R > debian/tmp/usr/bin/R
dh_installdocs
View
2 demos/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/demos/Makefile
+# ${R_HOME}/demos/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
4 demos/dynload/zero.R
@@ -13,8 +13,8 @@
dyn.load(paste("zero", .Platform$dynlib.ext, sep=""))
##-- you may need to change this to
-## dyn.load("<RHOME>/demos/dynload/zero.so")
-##-- substituting the proper path for <RHOME>,
+## dyn.load("<R_HOME>/demos/dynload/zero.so")
+##-- substituting the proper path for <R_HOME>,
## unless you are executing R from the directory containing zero.so
zero <- function(f, guesses, tol = 1e-7) {
View
2 doc/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/doc/Makefile
+# ${R_HOME}/doc/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
14 doc/keyword-test.in
@@ -9,23 +9,23 @@ use File::Basename;
use Cwd;
$cwd=getcwd();
-if($ENV{"RHOME"}){
- $RHOME=$ENV{"RHOME"};
+if($ENV{"R_HOME"}){
+ $R_HOME=$ENV{"R_HOME"};
}
else{
chdir(dirname($0) . "/..");
- $RHOME=getcwd();
+ $R_HOME=getcwd();
}
chdir($cwd);
-require "$RHOME/etc/Rdconvlib.pl";
+require "$R_HOME/etc/Rdconvlib.pl";
@knownoptions = ("debug|d", "help|h");
GetOptions (@knownoptions) || usage();
usage() if $opt_help;
-print stderr "RHOME: '$RHOME'; cwd='$cwd'\n" if $opt_debug;
+print stderr "R_HOME: '$R_HOME'; cwd='$cwd'\n" if $opt_debug;
##
file:
@@ -64,12 +64,8 @@ file:
}
-
-
sub usage {
-
print "keyword-test [ -d(ebug) ] [ -h(elp) ] __.Rd-files__ \n";
print "Example: $0 ../src/library/base/eda/*.Rd\n\n";
exit 0;
}
-
View
2 doc/manual/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/doc/manual/Makefile
+# ${R_HOME}/doc/manual/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 doc/manual/Rd2dvi.tex
@@ -1,4 +1,4 @@
-%--- This is used for the ${RHOME}/etc/Rd2dvi command :
+%--- This is used for the ${R_HOME}/etc/Rd2dvi command :
\documentclass[a4paper]{book}
\usepackage{Rd2}
\usepackage{makeidx}
View
4 doc/manual/writing-Rd.tex
@@ -28,7 +28,7 @@ \section{Documentation Format}\label{sec:doc-format}
The help files are written in a form and syntax---closely resembling
\TeX{} and \LaTeX{}---which can be processed into a variety of formats,
including \LaTeX, [TN]roff, and \HTML. The translation is carried out
-by the \textsc{perl} script \file{Rdconv} in \file{\$RHOME/bin}.
+by the \textsc{perl} script \file{Rdconv} in \file{\$R\_HOME/bin}.
For a given R function \code{myfunction}, use the \R{} command
\code{prompt(myfunction)} to produce the file \file{myfunction.Rd}. The
@@ -125,7 +125,7 @@ \section{Documentation Format}\label{sec:doc-format}
\CMDv{keyword}{key\_1}
\COMMENT{Use at least one keyword out of the list} \\
\CMDv{keyword}{key\_2}
- \COMMENT{in \file{\$RHOME/doc/KEYWORDS}}
+ \COMMENT{in \file{\$R\_HOME/doc/KEYWORDS}}
\end{quote}
\section{Sectioning}
View
4 etc/Makeconf.in
@@ -1,11 +1,11 @@
# @configure_input@
#
-# ${RHOME}/etc/Makeconf
+# ${R_HOME}/etc/Makeconf
CC = @CC@
CFLAGS = @CFLAGS@
CPICFLAGS = @CPICFLAGS@
-CPPFLAGS = -I$(RHOME)/include
+CPPFLAGS = -I$(R_HOME)/include
FC = @FC@
FFLAGS = @FFLAGS@
FLIBS = @FLIBS@
View
2 etc/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/etc/Makefile
+# ${R_HOME}/etc/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 etc/Rdconvlib.pl
@@ -33,7 +33,7 @@
## ==> Consequence: Allow \verbatim{ ...} only *within* other
## top-level blocks ...
-require "$RHOME/etc/html-layout.pl";
+require "$R_HOME/etc/html-layout.pl";
# names of unique text blocks, these may NOT appear MORE THAN ONCE!
View
14 etc/buildlib.pl
@@ -23,7 +23,7 @@
use Cwd;
use File::Basename;
-require "$RHOME/etc/html-layout.pl";
+require "$R_HOME/etc/html-layout.pl";
if($opt_dosnames){
@@ -49,7 +49,7 @@ sub buildinit {
die("Package $pkg does not exist\n") unless (-d $pkg);
}
else{
- $pkg="$RHOME/src/library/base";
+ $pkg="$R_HOME/src/library/base";
}
chdir $currentdir;
@@ -61,7 +61,7 @@ sub buildinit {
chdir $currentdir;
}
else{
- $lib="$RHOME/library";
+ $lib="$R_HOME/library";
}
chdir $currentdir;
@@ -208,7 +208,7 @@ sub read_anindex {
-### Build $RHOME/doc/html/packages.html from the $pkg/TITLE files
+### Build $R_HOME/doc/html/packages.html from the $pkg/TITLE files
sub build_htmlpkglist {
@@ -217,7 +217,7 @@ sub build_htmlpkglist {
my %htmltitles = read_titles($lib);
my $key;
- open(htmlfile, ">$RHOME/doc/html/packages.$HTML");
+ open(htmlfile, ">$R_HOME/doc/html/packages.$HTML");
print htmlfile html_pagehead("Package Index", ".",
"index.$HTML", "Top",
@@ -359,9 +359,9 @@ sub build_htmlfctlist {
my %htmltitles = read_functiontitles($lib);
my $key;
- open(htmlfile, ">$RHOME/doc/html/function.$HTML");
+ open(htmlfile, ">$R_HOME/doc/html/function.$HTML");
- print htmlfile html_pagehead("Functions installed in RHOME", ".",
+ print htmlfile html_pagehead("Functions installed in R_HOME", ".",
"index.$HTML", "Top",
"packages.$HTML", "Packages");
View
2 etc/html-layout.pl
@@ -1,7 +1,7 @@
# The head of a html page (e.g. used for packages list)
# Arguments:
# $title of the page
-# $top relative path to $RHOME/doc/html (must be "." if we
+# $top relative path to $R_HOME/doc/html (must be "." if we
# already are there)
# $up filename of the upper file
# $uptext alternate text for upper file
View
2 src/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/Makefile
+# ${R_HOME}/src/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/appl/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/appl/Makefile
+# ${R_HOME}/src/appl/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/gnome/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/unix/Makefile
+# ${R_HOME}/src/gnome/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
49 src/gnome/system.c
@@ -233,43 +233,40 @@ FILE *R_fopen(const char *filename, const char *mode)
FILE *R_OpenLibraryFile(char *file)
{
- char buf[256], *rhome;
+ char buf[256];
FILE *fp;
- if((rhome = getenv("RHOME")) == NULL)
- return NULL;
- sprintf(buf, "%s/library/base/R/%s", rhome, file);
+ sprintf(buf, "%s/library/base/R/%s", R_Home, file);
fp = R_fopen(buf, "r");
return fp;
}
FILE *R_OpenSysInitFile(void)
{
- char buf[256], *rhome;
+ char buf[256];
FILE *fp;
- if((rhome = getenv("RHOME")) == NULL)
- return NULL;
- sprintf(buf, "%s/library/base/R/Rprofile", rhome);
+ sprintf(buf, "%s/library/base/R/Rprofile", R_Home);
fp = R_fopen(buf, "r");
return fp;
}
+
FILE *R_OpenSiteFile(void)
{
- char buf[256], *rhome;
+ char buf[256];
FILE *fp;
fp = NULL;
if (LoadSiteFile) {
- if ((fp = R_fopen(getenv("RPROFILE"), "r")))
- return fp;
- if ((rhome = getenv("RHOME")) == NULL)
- return NULL;
- sprintf(buf, "%s/etc/Rprofile", rhome);
- if ((fp = R_fopen(buf, "r")))
- return fp;
+ if ((fp = R_fopen(getenv("R_PROFILE"), "r")))
+ return fp;
+ if ((fp = R_fopen(getenv("RPROFILE"), "r")))
+ return fp;
+ sprintf(buf, "%s/etc/Rprofile", R_Home);
+ if ((fp = R_fopen(buf, "r")))
+ return fp;
}
return fp;
@@ -283,19 +280,18 @@ FILE *R_OpenInitFile(void)
fp = NULL;
if (LoadInitFile) {
- if ((fp = R_fopen(".Rprofile", "r")))
- return fp;
- if ((home = getenv("HOME")) == NULL)
- return NULL;
- sprintf(buf, "%s/.Rprofile", home);
- if ((fp = R_fopen(buf, "r")))
- return fp;
+ if ((fp = R_fopen(".Rprofile", "r")))
+ return fp;
+ if ((home = getenv("HOME")) == NULL)
+ return NULL;
+ sprintf(buf, "%s/.Rprofile", home);
+ if ((fp = R_fopen(buf, "r")))
+ return fp;
}
return fp;
}
-
/*--- Initialization Code ---*/
#ifdef HAVE_TIMES
@@ -453,6 +449,9 @@ int main(int ac, char **av)
R_Interactive = 1;
R_Sinkfile = NULL;
+ if((R_Home = R_HomeDir()) == NULL) {
+ R_Suicide("R home directory is not defined");
+ }
if(!R_Interactive && DefaultSaveAction == 0)
R_Suicide("you must specify `--save' or `--no-save'");
@@ -1068,7 +1067,7 @@ int del, char *pager)
char *R_HomeDir()
{
- return getenv("RHOME");
+ return getenv("R_HOME");
}
/* Unix file names which begin with "." are invisible. */
View
2 src/include/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/include/Makefile
+# ${R_HOME}/src/include/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/include/README
@@ -8,7 +8,7 @@ There are 2 kinds:
i.e., declaring code that can be used in
R packages or user code which will be dyn.load()ed into R.
- The declarations from "ii)" will be moved to $(RHOME)/include/
+ The declarations from "ii)" will be moved to $(R_HOME)/include/
and be available with, e.g., ``R COMPILE''.
These are listed as "SRC_HEADERS" in ./Makefile.
~~~~~~~~~~~
View
23 src/library/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/Makefile
+# ${R_HOME}/src/library/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -34,14 +34,14 @@ R:
docs:
@echo "Building ALL documentation (help, HTML, LaTeX, examples)"
@$(MAKE) DOCS
- @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
- $${RHOME}/bin/build-help --htmllists
+ @R_HOME=`cd $(top_builddir); pwd`; export R_HOME; \
+ $${R_HOME}/bin/build-help --htmllists
help:
@OPTS="--nroff" $(MAKE) DOCS
html:
@OPTS="--html" $(MAKE) DOCS
- @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
- $${RHOME}/bin/build-help --htmllists
+ @R_HOME=`cd $(top_builddir); pwd`; export R_HOME; \
+ $${R_HOME}/bin/build-help --htmllists
latex:
@OPTS="--latex" $(MAKE) DOCS
examples:
@@ -51,15 +51,14 @@ $(top_builddir)/library/LibIndex:
@if [ ! -f $@ ]; then touch $@; fi
DOCS:
-# @cd base/man && ${MAKE}
@for pkg in $(PKGS); do \
- RHOME=`cd $(top_builddir); pwd`; export RHOME; \
- $${RHOME}/bin/build-help $${OPTS} $(srcdir)/$${pkg}; \
- $${RHOME}/bin/Rd2contents $(srcdir)/$${pkg} \
- > $${RHOME}/library/$${pkg}/CONTENTS; \
+ R_HOME=`cd $(top_builddir); pwd`; export R_HOME; \
+ $${R_HOME}/bin/build-help $${OPTS} $(srcdir)/$${pkg}; \
+ $${R_HOME}/bin/Rd2contents $(srcdir)/$${pkg} \
+ > $${R_HOME}/library/$${pkg}/CONTENTS; \
done; \
- cat $${RHOME}/library/*/CONTENTS \
- > $${RHOME}/doc/html/search/index.txt
+ cat $${R_HOME}/library/*/CONTENTS \
+ > $${R_HOME}/doc/html/search/index.txt
mostlyclean: clean
clean:
View
2 src/library/base/INDEX
@@ -8,5 +8,5 @@ to list all user-level objects in the base package.
Alternatively you can browse the HTML manual by help.start(), and go
to the base section of the `Packages' page.
-Or, look at ${RHOME}/dvi/Man.dvi for a nicely formatted alphabetically
+Or, look at ${R_HOME}/dvi/Man.dvi for a nicely formatted alphabetically
organized reference manual.
View
2 src/library/base/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/base/Makefile
+# ${R_HOME}/src/library/base/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/library/base/R/read.R
@@ -2,7 +2,7 @@ read.fwf <- function(file, widths, sep = "", as.is = FALSE,
skip = 0, row.names, col.names) {
FILE <- tempfile("R.")
on.exit(unlink(FILE))
- system(paste("${RHOME}/bin/fwf2table -f",
+ system(paste("${R_HOME}/bin/fwf2table -f",
deparse(paste("A", widths, sep = "", collapse = " ")),
"-s", deparse(sep), file, ">", FILE))
read.table(file = FILE, header = FALSE, sep = sep, as.is = as.is,
View
2 src/library/base/R/system.unix.R
@@ -23,7 +23,7 @@ help.start <- function (gui = "irrelevant", browser = .Options$browser,
"/doc/html/index.html", sep = "")
cat("If", browser, " is already running,\tit is *not* restarted,\n",
"and you must switch to its window.\nOtherwise, be patient..\n")
- system(paste("${RHOME}/bin/help.links",
+ system(paste("${R_HOME}/bin/help.links",
paste(unique(.lib.loc), sep=" ", collapse=" "),
sep =" "))
system(paste(browser, " -remote \"openURL(", url, ")\" 2>/dev/null || ",
View
2 src/library/base/man/INSTALL.Rd
@@ -15,7 +15,7 @@
}
\description{
To install packages into the default library tree (which is rooted at
- \file{\$RHOME/library}), do \code{R INSTALL pkgs}.
+ \file{\$R\_HOME/library}), do \code{R INSTALL pkgs}.
To install into the library tree \code{lib} instead of the default
one, use \code{R INSTALL -l lib pkgs}.
View
9 src/library/base/man/REMOVE.Rd
@@ -8,11 +8,12 @@
be absolute or relative.}
}
\description{
- Use \code{R REMOVE pkgs} to remove the packages in \code{pkgs} from
- the default library tree (which is rooted at \file{\$RHOME/library}).
+ Use \code{R REMOVE pkgs} to remove the packages in \code{pkgs} from
+ the default library tree (which is rooted at
+ \file{\$R\_HOME/library}).
- To remove from the library tree \code{lib} instead of the default
- one, use \code{R REMOVE -l lib pkgs}.
+ To remove from the library tree \code{lib} instead of the default
+ one, use \code{R REMOVE -l lib pkgs}.
}
\seealso{
\code{\link{INSTALL}}
View
5 src/library/base/man/RHOME.Rd
@@ -1,8 +1,9 @@
\name{RHOME}
\title{R Home Directory}
\alias{RHOME}
+\alias{R_HOME}
\usage{R RHOME}
\description{
- Returns the location of the R home directory, which is the root of the
- installed R tree.
+ Returns the location of the R home directory, which is the root of
+ the installed R tree.
}
View
2 src/library/base/man/contour.Rd
@@ -33,7 +33,7 @@ contour(x = seq(0, 1, len = nrow(z)), y = seq(0, 1, len = ncol(z)), z,
\description{
Draws contour lines for the desired levels.
There is currently no documentation about the algorithm.
- The source code is in \file{\$RHOME/src/main/plot.c}.
+ The source code is in \file{\$R\_HOME/src/main/plot.c}.
}
\seealso{
\code{\link{image}} and the graphics demo which can be invoked as
View
2 src/library/base/man/copyright.Rd
@@ -12,7 +12,7 @@
\code{?\link{contributors}}) for the ability to use their work.
}
\details{
- The file \file{\$RHOME/COPYRIGHTS} lists the copyrights in full
+ The file \file{\$R\_HOME/COPYRIGHTS} lists the copyrights in full
detail.
}
\keyword{misc}
View
2 src/library/base/man/deriv.Rd
@@ -39,7 +39,7 @@ deriv(expr, namevec, function.arg = NULL, tag = ".expr")
}
\note{
This help page should be fixed up by one of R&R or someone else who
- fluently speaks the language in \file{\$RHOME/src/main/deriv.c}.
+ fluently speaks the language in \file{\$R\_HOME/src/main/deriv.c}.
It's author, MM, has only got a vague idea and thinks that a help page
is better than none.
View
2 src/library/base/man/getenv.Rd
@@ -18,7 +18,7 @@ getenv(x)
(or \code{""} if no environment variable with that name was found).
}
\examples{
-getenv(c("RHOME", "R_PAPERSIZE", "R_PRINTCMD"))
+getenv(c("R_HOME", "R_PAPERSIZE", "R_PRINTCMD"))
}
\keyword{environment}
\keyword{utilities}
View
23 src/library/base/man/help.start.Rd
@@ -5,23 +5,24 @@ help.start(gui = "irrelevant", browser = "netscape", remote = NULL)
}
\alias{help.start}
\arguments{
- \item{gui}{just for compatibility}
- \item{browser}{the name of the program to be used as hypertext browser.}
- \item{remote}{A character giving a valid URL for the \file{\$RHOME} directory
- on a remote location.}
+ \item{gui}{just for compatibility}
+ \item{browser}{the name of the program to be used as hypertext
+ browser.}
+ \item{remote}{A character giving a valid URL for the
+ \file{\$R\_HOME} directory on a remote location.}
}
\description{
- Start the hypertext (currently HTML) version of \R's online documentation.
+ Start the hypertext (currently HTML) version of \R's online
+ documentation.
}
\details{
- The \code{browser} needs to work with an \code{"-remote openURL(..)"}
- call.
- Then, the hypertext \R help interface is opened in any already running
- browser or a new one if necessary.
+ The \code{browser} needs to work with a \code{"-remote openURL(..)"}
+ call. Then, the hypertext \R help interface is opened in any already
+ running browser or a new one if necessary.
}
\seealso{
- \code{\link{help}()} for on- and off-line help in ASCII/Editor or
- PostScript format.
+ \code{\link{help}()} for on- and off-line help in ASCII/Editor or
+ PostScript format.
}
\examples{
\dontrun{help.start()}
View
2 src/library/base/man/license.Rd
@@ -343,7 +343,7 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
}
-\references{A copy of license is in \file{\$RHOME/COPYING} and you may
+\references{A copy of license is in \file{\$R\_HOME/COPYING} and you may
also want to look at the R FAQ in
\url{http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html}.}
\keyword{misc}
View
2 src/library/base/man/options.Rd
@@ -30,7 +30,7 @@ options(\dots)
\item{na.action}{the name of a function for treating missing values
(\code{\link{NA}}'s) for certain situations.}
\item{pager}{the (standalone) program used for displaying ASCII files on
- \R's console. Defaults to \file{\$RHOME/bin/pager}.}
+ \R's console. Defaults to \file{\$R\_HOME/bin/pager}.}
\item{papersize}{the paper format used for graphics printing; currently
\bold{read-only}, set by environment variable R\_PAPERSIZE, or in
\file{config.site}.}
View
4 src/library/base/man/prompt.Rd
@@ -21,11 +21,11 @@ prompt.default(object,
An ASCII file \code{filename} is produced containing the proper
function and argument names of \code{object}. You have to edit it
before adding the documentation to the source tree, i.e., (currently)
- to \file{\$RHOME/src/library/base/man/}.
+ to \file{\$R\_HOME/src/library/base/man/}.
}
\seealso{
\code{\link{help}} and the tutorial about writing \R documentation,
- currently in the file \file{\$RHOME/doc/manual/writing-Rd.tex}.
+ currently in the file \file{\$R\_HOME/doc/manual/writing-Rd.tex}.
}
\examples{
prompt(plot.default)
View
2 src/library/base/man/read.fwf.Rd
@@ -27,7 +27,7 @@ read.fwf(file, widths, sep=" ", as.is = FALSE,
which is called internally.
}
\note{This function currently relies on the \code{Perl} script
- \file{\$RHOME/bin/fwf2table}.
+ \file{\$R\_HOME/bin/fwf2table}.
Therefore, it will only work in an environment with
\code{Perl} installed.
}
View
2 src/library/eda/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/${pkg}/Makefile
+# ${R_HOME}/src/library/eda/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
4 src/library/eda/src/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/eda/src/Makefile
+# ${R_HOME}/src/library/eda/src/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -10,7 +10,7 @@ subdir = src/library/eda/src
include $(top_builddir)/etc/Makeconf
MKINSTALLDIRS = $(top_srcdir)/aux/mkinstalldirs
-RHOME = $(top_builddir)
+R_HOME = $(top_builddir)
pkg = eda
LIB = $(pkg).$(SHLIBEXT)
View
2 src/library/lqs/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/${pkg}/Makefile
+# ${R_HOME}/src/library/lqs/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
5 src/library/lqs/src/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/lqs/src/Makefile
+# ${R_HOME}/src/library/lqs/src/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -10,13 +10,12 @@ subdir = src/library/lqs/src
include $(top_builddir)/etc/Makeconf
MKINSTALLDIRS = $(top_srcdir)/aux/mkinstalldirs
-RHOME = $(top_builddir)
+R_HOME = $(top_builddir)
pkg = lqs
LIB = $(pkg).$(SHLIBEXT)
OBJS = lqs.o
-
all: $(LIB)
@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/libs
@cp $(LIB) $(top_builddir)/library/$(pkg)/libs
View
2 src/library/modreg/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/${pkg}/Makefile
+# ${R_HOME}/src/library/modreg/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
4 src/library/modreg/src/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/modreg/src/Makefile
+# ${R_HOME}/src/library/modreg/src/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -10,7 +10,7 @@ subdir = src/library/modreg/src
include $(top_builddir)/etc/Makeconf
MKINSTALLDIRS = $(top_srcdir)/aux/mkinstalldirs
-RHOME = $(top_builddir)
+R_HOME = $(top_builddir)
pkg = modreg
LIB = $(pkg).$(SHLIBEXT)
View
2 src/library/mva/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/${pkg}/Makefile
+# ${R_HOME}/src/library/mva/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
5 src/library/mva/src/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/mva/src/Makefile
+# ${R_HOME}/src/library/mva/src/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -10,13 +10,12 @@ subdir = src/library/mva/src
include $(top_builddir)/etc/Makeconf
MKINSTALLDIRS = $(top_srcdir)/aux/mkinstalldirs
-RHOME = $(top_builddir)
+R_HOME = $(top_builddir)
pkg = mva
LIB = $(pkg).$(SHLIBEXT)
OBJS = dblcen.o hclust.o kmns.o
-
all: $(LIB)
@$(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/libs
@cp $(LIB) $(top_builddir)/library/$(pkg)/libs
View
2 src/library/profile/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/profile/Makefile
+# ${R_HOME}/src/library/profile/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/library/stepfun/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/library/${pkg}/Makefile
+# ${R_HOME}/src/library/stepfun/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/main/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/main/Makefile
+# ${R_HOME}/src/main/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
2 src/nmath/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/nmath/Makefile
+# ${R_HOME}/src/nmath/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
4 src/scripts/BATCH
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# ${RHOME}/bin/BATCH
+# ${R_HOME}/bin/BATCH
OPTS="--restore --save --no-readline"
@@ -20,4 +20,4 @@ OUT=${2-`basename ${1} .R`.Rout}
(echo "invisible(options(echo = TRUE))"
cat ${IN}
echo "proc.time()"
-) | ${RHOME}/bin/R ${OPTS} >${OUT} 2>&1
+) | ${R_HOME}/bin/R ${OPTS} >${OUT} 2>&1
View
6 src/scripts/COMPILE.in
@@ -1,16 +1,16 @@
#!/bin/sh
#
-# ${RHOME}/bin/COMPILE
+# ${R_HOME}/bin/COMPILE
# @configure_input@
MAKE=${MAKE-@MAKE@}
MAKEOPTS=
if test -r Makefile; then
- MAKEFILES="-f ${RHOME}/etc/Makeconf -f Makefile"
+ MAKEFILES="-f ${R_HOME}/etc/Makeconf -f Makefile"
else
- MAKEFILES="-f ${RHOME}/etc/Makeconf"
+ MAKEFILES="-f ${R_HOME}/etc/Makeconf"
fi
OBJS=
View
22 src/scripts/INSTALL.in
@@ -1,6 +1,6 @@
#! /bin/sh
-# ${RHOME}/bin/INSTALL for installing add-on packages
+# ${R_HOME}/bin/INSTALL for installing add-on packages
# Usage:
# R INSTALL [options] [-l lib] pkg_1 ... pkg_n
@@ -34,7 +34,7 @@ NO_PERL5_MSG="\
*** ftp://ftp.ci.tuwien.ac.at/pub/R"
PKGS=
-lib=${RHOME}/library
+lib=${R_HOME}/library
MAKE=${MAKE-@MAKE@}
@@ -125,12 +125,12 @@ for pkg in ${PKGS}; do
mkdir -p ${lib}/${pkg}/libs
if test -f src/Makefile; then
(cd src;
- ${MAKE} -f ${RHOME}/etc/Makeconf -f Makefile \
+ ${MAKE} -f ${R_HOME}/etc/Makeconf -f Makefile \
&& cp *.@SHLIBEXT@ ${lib}/${pkg}/libs; \
if ${CLEAN}; then ${MAKE} clean; fi)
else
(cd src;
- sh ${RHOME}/bin/SHLIB ${SHLIB_OPTS} \
+ sh ${R_HOME}/bin/SHLIB ${SHLIB_OPTS} \
-o ${lib}/${pkg}/libs/${pkg}.@SHLIBEXT@ *.[cf]; \
if ${CLEAN}; then rm -f *.o; fi)
fi || {
@@ -185,14 +185,14 @@ for pkg in ${PKGS}; do
echo "${NO_PERL5_MSG}"
else
if ${DEBUG}; then
- echo " ${RHOME}/bin/build-help ${BUILD_HELP_OPTS} ../${pkg} ${lib}"
+ echo " ${R_HOME}/bin/build-help ${BUILD_HELP_OPTS} ../${pkg} ${lib}"
fi
- ${RHOME}/bin/build-help ${BUILD_HELP_OPTS} ../${pkg} ${lib}
- ${RHOME}/bin/Rd2contents ../${pkg} > ${lib}/${pkg}/CONTENTS
- if test ${lib} = ${RHOME}/library; then
- ${RHOME}/bin/build-help --htmllists
- cat ${RHOME}/library/*/CONTENTS \
- > ${RHOME}/doc/html/search/index.txt
+ ${R_HOME}/bin/build-help ${BUILD_HELP_OPTS} ../${pkg} ${lib}
+ ${R_HOME}/bin/Rd2contents ../${pkg} > ${lib}/${pkg}/CONTENTS
+ if test ${lib} = ${R_HOME}/library; then
+ ${R_HOME}/bin/build-help --htmllists
+ cat ${R_HOME}/library/*/CONTENTS \
+ > ${R_HOME}/doc/html/search/index.txt
fi
fi
if test -n "${USE_ZIP}" -a -n "${R_UNZIPCMD}" -a -n "${R_ZIPCMD}"; then
View
4 src/scripts/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/scripts/Makefile
+# ${R_HOME}/src/scripts/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -23,7 +23,7 @@ all: R
R:
@$(MKINSTALLDIRS) $(top_builddir)/bin
@cat R.sh | \
- (cd $(top_builddir); sed "s@RHOME=.*@RHOME=`pwd`@" > bin/R)
+ (cd $(top_builddir); sed "s@R_HOME=.*@R_HOME=`pwd`@" > bin/R)
@chmod +x $(top_builddir)/bin/R
@for f in $(SRC_SCRIPTS); do \
$(INSTALL) $(srcdir)/$$f $(top_builddir)/bin; \
View
16 src/scripts/R.sh.in
@@ -1,9 +1,8 @@
#!/bin/sh
# Shell wrapper for R executable.
-RHOME=R_HOME_DIR
-R_HOME=${RHOME}
-export RHOME R_HOME
+R_HOME=R_HOME_DIR
+export R_HOME
R_BINARY="R.binary"
# Default Printer Paper Size
@@ -33,11 +32,11 @@ USE_R_ENVIRON=true
while test -n "${1}"; do
case ${1} in
RHOME)
- echo ${RHOME}; exit 0 ;;
+ echo ${R_HOME}; exit 0 ;;
CMD)
- shift; PATH="${PATH}:${RHOME}/bin" exec "${@}" ;;
+ shift; PATH="${PATH}:${R_HOME}/bin" exec "${@}" ;;
BATCH|COMPILE|INSTALL|REMOVE|SHLIB)
- CMD="$1"; shift; exec sh "${RHOME}/bin/${CMD}" "${@}" ;;
+ CMD="$1"; shift; exec sh "${R_HOME}/bin/${CMD}" "${@}" ;;
-g|--gnome)
R_BINARY="R.gnome" ;;
-d|--debugger)
@@ -47,7 +46,7 @@ while test -n "${1}"; do
echo "*** (maybe use \`run ${args}' from *inside* ${deb}"
echo ""
fi
- exec ${deb} ${RHOME}/bin/${R_BINARY} ;;
+ exec ${deb} ${R_HOME}/bin/${R_BINARY} ;;
--no-environ)
USE_R_ENVIRON=false ;;
--vanilla)
@@ -106,10 +105,9 @@ done
if ${USE_R_ENVIRON}; then
[ -r ${HOME}/.Renviron ] && . ${HOME}/.Renviron
fi
-exec ${RHOME}/bin/${R_BINARY} @R_BATCHSAVE@ ${ARGS}
+exec ${R_HOME}/bin/${R_BINARY} @R_BATCHSAVE@ ${ARGS}
### Local Variables: ***
### mode: sh ***
### sh-indentation: 2 ***
### End: ***
-
View
10 src/scripts/REMOVE.in
@@ -1,13 +1,13 @@
#! /bin/sh
-# ${RHOME}/bin/REMOVE for removing add-on packages
+# ${R_HOME}/bin/REMOVE for removing add-on packages
# Usage:
# R REMOVE [options] [-l lib] pkg_1 ... pkg_n
VERSION="0.1-0"
USAGE_MSG="Usage: R REMOVE [options] [-l lib] pkg_1 ... pkg_n"
PKGS=
-lib=${RHOME}/library
+lib=${R_HOME}/library
while test -n "${1}"; do
case ${1} in
@@ -56,7 +56,7 @@ if ${NO_PERL5}; then
exit 2
fi
-if test ${lib} = ${RHOME}/library; then
- ${RHOME}/bin/build-help --htmllists
- cat ${RHOME}/library/*/CONTENTS > ${RHOME}/doc/html/search/index.txt
+if test ${lib} = ${R_HOME}/library; then
+ ${R_HOME}/bin/build-help --htmllists
+ cat ${R_HOME}/library/*/CONTENTS > ${R_HOME}/doc/html/search/index.txt
fi
View
6 src/scripts/Rd2dvi
@@ -1,13 +1,13 @@
#!/bin/sh
# Rd2dvi -- 'check' man pages (help files) by 'LaTeX'..
#
-# Example (in $RHOME):
+# Example (in $R_HOME):
# bin/Rd2dvi src/library/base/man/Normal
# bin/Rd2dvi `grep -l 'KEYWORD(distr' src/library/base/man/* |sort|uniq`
#
Pwd=`dirname $0`
-RHOME=${Pwd}/..
-MANTEXDIR=${RHOME}/doc/manual
+R_HOME=${Pwd}/..
+MANTEXDIR=${R_HOME}/doc/manual
D2L="${Pwd}/Rdconv -t latex"
#
call_dir=`pwd`
View
6 src/scripts/Rd2txt
@@ -1,8 +1,8 @@
#!/bin/sh
-RHOME=`R RHOME`
+R_HOME=`R RHOME`
-$RHOME/bin/Rdconv -t nroff $1 \
+${R_HOME}/bin/Rdconv -t nroff ${1} \
| tbl \
| nroff -ms 2> /dev/null \
- | $RHOME/bin/help.pretty
+ | ${R_HOME}/bin/help.pretty
View
12 src/scripts/Rdconv.in
@@ -27,23 +27,23 @@ use File::Basename;
use Cwd;
$cwd=getcwd();
-if($ENV{"RHOME"}){
- $RHOME=$ENV{"RHOME"};
+if($ENV{"R_HOME"}){
+ $R_HOME=$ENV{"R_HOME"};
}
else{
- $RHOME = `R RHOME`;
- $RHOME =~ s/(.*)\n*/$1/;
+ $R_HOME = `R RHOME`;
+ $R_HOME =~ s/(.*)\n*/$1/;
}
chdir($cwd);
-require "$RHOME/etc/Rdconvlib.pl";
+require "$R_HOME/etc/Rdconvlib.pl";
@knownoptions = ("debug|d", "type|t:s", "help|h");
GetOptions (@knownoptions) || usage();
usage() if $opt_help;
-print stderr "RHOME: '$RHOME'; cwd='$cwd'\n" if $opt_debug;
+print stderr "R_HOME: '$R_HOME'; cwd='$cwd'\n" if $opt_debug;
##-- In the future, we want allow SEVERAL types simultaneously ... :
if($opt_type =~ /html/i){
View
4 src/scripts/SHLIB.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# ${RHOME}/bin/SHLIB
+# ${R_HOME}/bin/SHLIB
# @configure_input@
@@ -35,7 +35,7 @@ while test -n "${1}"; do
shift
done
-${MAKE} -f ${RHOME}/etc/Makeconf SHLIB="${lib}" OBJS="${OBJS}"
+${MAKE} -f ${R_HOME}/etc/Makeconf SHLIB="${lib}" OBJS="${OBJS}"
### Local Variables: ***
### mode: sh ***
View
36 src/scripts/build-help.in
@@ -1,11 +1,11 @@
#! @PERL@
#-*- mode: perl; perl-indent-level: 4; cperl-indent-level: 4 -*-
#
-# ${RHOME}/bin/build-help
+# ${R_HOME}/bin/build-help
# Usage: build-help [options] [pkg] [lib]
# Install all help files for package pkg to library lib
-# (defaults are `${RHOME}/src/library/base' and the default library,
-# `${RHOME}/library', respectively).
+# (defaults are `${R_HOME}/src/library/base' and the default library,
+# `${R_HOME}/library', respectively).
use File::Basename;
use Cwd;
@@ -17,34 +17,34 @@ GetOptions (@knownoptions) || usage();
$cwd=getcwd();
if($opt_rhome){
- $RHOME=$opt_rhome;
- print STDERR "RHOME from --rhome: `$RHOME'\n" if $opt_debug;
+ $R_HOME=$opt_rhome;
+ print STDERR "R_HOME from --rhome: `$R_HOME'\n" if $opt_debug;
}
-elsif($ENV{"RHOME"}){
- $RHOME=$ENV{"RHOME"};
- print STDERR "RHOME from ENV: `$RHOME'\n" if $opt_debug;
+elsif($ENV{"R_HOME"}){
+ $R_HOME=$ENV{"R_HOME"};
+ print STDERR "R_HOME from ENV: `$R_HOME'\n" if $opt_debug;
}
else{
chdir(dirname($0) . "/..");
- $RHOME=getcwd();
+ $R_HOME=getcwd();
}
chdir($cwd);
print STDERR "Current directory (cwd): `$cwd'\n" if $opt_debug;
-require "$RHOME/etc/Rdconvlib.pl";
-require "$RHOME/etc/buildlib.pl";
+require "$R_HOME/etc/Rdconvlib.pl";
+require "$R_HOME/etc/buildlib.pl";
# if option --htmllists is set we only rebuild some list files and
# exit
if($opt_htmllists){
- build_htmlpkglist("$RHOME/library");
+ build_htmlpkglist("$R_HOME/library");
- %anindex = read_anindex("$RHOME/library");
- %htmlindex = read_htmlindex("$RHOME/library");
+ %anindex = read_anindex("$R_HOME/library");
+ %htmlindex = read_htmlindex("$R_HOME/library");
- build_htmlfctlist("$RHOME/library");
+ build_htmlfctlist("$R_HOME/library");
exit 0;
}
@@ -85,8 +85,8 @@ print "\n";
%anindex = read_anindex($lib);
if($opt_html){
%htmlindex = read_htmlindex($lib);
- if ($lib ne "$RHOME/library") {
- %basehtmlindex = read_htmlindex("$RHOME/library");
+ if ($lib ne "$R_HOME/library") {
+ %basehtmlindex = read_htmlindex("$R_HOME/library");
foreach $topic (keys %htmlindex) {
$basehtmlindex{$topic} = $htmlindex{$topic};
}
@@ -113,7 +113,7 @@ foreach $manfile (@mandir) {
if(fileolder($destfile, $manage)) {
$textflag = "text";
open(nroffout, "| tbl | nroff -ms 2> /dev/null | " .
- " ${RHOME}/bin/help.pretty > '$destfile'");
+ " ${R_HOME}/bin/help.pretty > '$destfile'");
Rdconv($manfile, "nroff", "", -1);
}
}
View
2 src/scripts/filename
@@ -1,6 +1,6 @@
#!/bin/sh
-# ${RHOME}/cmd/filename
+# ${R_HOME}/bin/filename
#cc Using 'found' ensures that at least an empty string is returned;
#cc without, system.file() returns character(0) if nothing is found.
View
2 src/scripts/help
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# ${RHOME}/bin/help
+# ${R_HOME}/bin/help
if [ "${1}" = "INDEX" ];
then
View
28 src/scripts/help.links
@@ -1,38 +1,38 @@
#! /bin/sh
-URHOME="${HOME}/.R"
-PKGLIST="${URHOME}/doc/html/packages.html"
-SEARCHINDEX="${URHOME}/doc/html/search/index.txt"
-rm -rf ${URHOME}
+U_R_HOME="${HOME}/.R"
+PKGLIST="${U_R_HOME}/doc/html/packages.html"
+SEARCHINDEX="${U_R_HOME}/doc/html/search/index.txt"
+rm -rf ${U_R_HOME}
-dirs="${URHOME} ${URHOME}/doc ${URHOME}/doc/html ${URHOME}/doc/html/search ${URHOME}/library"
+dirs="${U_R_HOME} ${U_R_HOME}/doc ${U_R_HOME}/doc/html ${U_R_HOME}/doc/html/search ${U_R_HOME}/library"
for d in ${dirs}; do
mkdir -p ${d}
done
-for f in ${RHOME}/doc/html/*; do
+for f in ${R_HOME}/doc/html/*; do
if test -f $f; then
- ln -s ${f} ${URHOME}/doc/html
+ ln -s ${f} ${U_R_HOME}/doc/html
fi
done
-for f in ${RHOME}/doc/html/search/*; do
+for f in ${R_HOME}/doc/html/search/*; do
if test -f $f; then
- ln -s ${f} ${URHOME}/doc/html/search
+ ln -s ${f} ${U_R_HOME}/doc/html/search
fi
done
rm -f ${PKGLIST}
-cp ${RHOME}/doc/html/packages-head.html ${PKGLIST}
+cp ${R_HOME}/doc/html/packages-head.html ${PKGLIST}
for lib in $*; do
echo "<P><h3>Packages in ${lib}</h3>" >> ${PKGLIST}
echo "<P><TABLE width=100%>" >> ${PKGLIST}
if test -d ${lib}; then
for pkg in `ls -d ${lib}/* | sed '/CVS$/d; /profile$/d'`; do
if test -d ${pkg}; then
- rm -f ${URHOME}/library/${pkg}
- ln -s ${pkg} ${URHOME}/library
+ rm -f ${U_R_HOME}/library/${pkg}
+ ln -s ${pkg} ${U_R_HOME}/library
pkgname=`basename ${pkg}`
if test -r ${pkg}/TITLE; then
pkgtitle=`cat ${pkg}/TITLE | sed "s/^${pkgname}//"`
@@ -50,8 +50,8 @@ for lib in $*; do
echo "" >> ${PKGLIST}
done
-cat ${RHOME}/doc/html/packages-foot.html >> ${PKGLIST}
+cat ${R_HOME}/doc/html/packages-foot.html >> ${PKGLIST}
rm -f ${SEARCHINDEX}
-cat ${URHOME}/library/*/CONTENTS > ${SEARCHINDEX}
+cat ${U_R_HOME}/library/*/CONTENTS > ${SEARCHINDEX}
View
6 src/scripts/massage-Examples
@@ -11,14 +11,14 @@
## Should work WHEREVER this is called from :
(cd `dirname $0`/..
- RHOME=`pwd`; export RHOME
+ R_HOME=`pwd`; export R_HOME
)
-RHOME=`cd ${RHOME}; pwd` # absolute
+R_HOME=`cd ${R_HOME}; pwd` # absolute
PKG=$1; shift;
FILES="$@"
-#Dbg> echo "RHOME=$RHOME"; echo
+#Dbg> echo "R_HOME=$R_HOME"; echo
#Dbg> echo "FILES=$FILES"; echo ; echo; exit
## 1) ---- Header ----
View
2 src/unix/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/src/unix/Makefile
+# ${R_HOME}/src/unix/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
6 src/unix/devPS.c
@@ -932,14 +932,10 @@ static void SetFont(int style, int size, DevDesc *dd)
static int PS_Open(DevDesc *dd, PostScriptDesc *pd)
{
char buf[512];
- char *rhome;
int i;
- if((rhome = getenv("RHOME")) == NULL)
- return 0;
-
for(i = 0; i < 5 ; i++) {
- sprintf(buf, "%s/afm/%s.%s", rhome,
+ sprintf(buf, "%s/afm/%s.%s", R_Home,
Family[pd->fontfamily].font[i].abbr,
(i == 4) ? "afm" : Extension[pd->encoding]);
if(!PostScriptLoadFontMetrics(buf, &(metrics[i])))
View
2 tests/Examples/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/tests/Examples/Makefile
+# ${R_HOME}/tests/Examples/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
View
7 tests/Makefile.in
@@ -1,5 +1,5 @@
#
-# ${RHOME}/tests/Makefile
+# ${R_HOME}/tests/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
@@ -15,10 +15,7 @@ DISTFILES = $(shell cd $(srcdir); \
ls Makefile.in README Rdiff *.R *.Rout.save)
SUBDIRS = Examples
-## FIXME
-
-RHOME= ..
-R = LC_ALL=C $(RHOME)/bin/R --vanilla
+R = LC_ALL=C $(top_builddir)/bin/R --vanilla
Ex = ./Examples
View
10 tools/GETSYMBOLS
@@ -1,12 +1,12 @@
#!/bin/sh
#
-# ${RHOME}/aux/GETSYMBOLS
+# ${R_HOME}/aux/GETSYMBOLS
# This code assembles the table of statically loaded C and Fortran
# code which is to be accessed via .C and .Fortran calls.
-AUXDIR=`echo $0 | sed 's%/[^/][^/]*$%%'`
-ROUTINES=${AUXDIR}/../src/appl/ROUTINES
+AUX_DIR=`echo $0 | sed 's%/[^/][^/]*$%%'`
+ROUTINES=${AUX_DIR}/../src/appl/ROUTINES
tmpROUT=/tmp/ROUTINES$$
##-- Allow "#" comments in ../src/appl/ROUTINES :
@@ -20,13 +20,13 @@ s/F77_SUBROUTINE(\(.*\))/int F77_SYMBOL(\1)();/
s/C_FUNCTION(\(.*\))/int \1();/
' ${tmpROUT} > /tmp/FFDecl.h
-${AUXDIR}/move-if-change /tmp/FFDecl.h FFDecl.h
+${AUX_DIR}/move-if-change /tmp/FFDecl.h FFDecl.h
sed '
s/F77_SUBROUTINE(\(.*\))/ { F77_QSYMBOL(\1), F77_SYMBOL(\1)},/
s/C_FUNCTION(\(.*\))/ { "\1", \1 },/
' ${tmpROUT} > /tmp/FFTab.h
-${AUXDIR}/move-if-change /tmp/FFTab.h FFTab.h
+${AUX_DIR}/move-if-change /tmp/FFTab.h FFTab.h
rm -f ${tmpROUT}

0 comments on commit 3f74187

Please sign in to comment.
Something went wrong with that request. Please try again.