[Rd] R_LIBS setting in R -d gdb

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Tue, 20 Feb 2001 14:45:00 +0100

>>>>> 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'.

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