From Kurt.Hornik@ci.tuwien.ac.at  Tue Feb 20 13:45:00 2001
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Tue, 20 Feb 2001 14:45:00 +0100
Subject: [Rd] R_LIBS setting in R -d gdb
In-Reply-To: <3A914969.3A17BA04@bank-banque-canada.ca>
References: <Pine.GSO.4.31.0102181102000.2115-100000@toucan.stats>
 <3A914969.3A17BA04@bank-banque-canada.ca>
Message-ID: <14994.29916.987350.524484@mithrandir.hornik.net>

>>>>> Paul Gilbert writes:

>> Is R_LIBS set anywhere else?  This works for me (Solaris 2.7) if I use
>> (gdb) r --vanilla to avoid the .Renviron which contains R_LIBS.

> This is the clue, though --vanilla doesn't fix it. R_LIBS is set in my
> .cshrc file and when I use R -d gdb it grabs the setting from there
> (but not when I don't use "-d gdb"). This seems a bit strange since I
> am actually running this from sh (which I started from a
> csh). However, it is not grabbing the R_LIBS setting from the original
> csh but directly from the .cshrc file since it changes when I comment
> out the setting in .cshrc and simply restart "R -d gdb".

I am confused.  But here's what the GDB info page says:

   *Warning:* On Unix systems, GDB runs your program using the shell
indicated by your `SHELL' environment variable if it exists (or
`/bin/sh' if not).  If your `SHELL' variable names a shell that runs an
initialization file--such as `.cshrc' for C-shell, or `.bashrc' for
BASH--any variables you set in that file affect your program.  You may
wish to move setting of environment variables to files that are only
run when you sign on, such as `.login' or `.profile'.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] R_LIBS setting in R -d gdb
Kurt Hornik