[Rd] R_LIBS setting in R -d gdb

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Sun, 18 Feb 2001 11:10:40 +0100


>>>>> Paul Gilbert writes:

> I am trying to catch a segfault from a shell in the tests directory
> set up by R CMD check with

> R_LIBS=~/dse/CHECKED/library:..
> export R_LIBS
> R -d gdb
> run

> but then when I try to load a library I find the setting of R_LIBS is
> ignored. What am I doing wrong? The library is found ok without -d
> gdb. (Using Solaris 2.6, R 1.2.1 Patched (2001-02-06) )

Hmm ... hard to believe:

hornik@mithrandir:~/tmp$ export R_LIBS=~/dse/CHECKED/library:..
hornik@mithrandir:~/tmp$ R -d gdb
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) r
...
R> Sys.getenv("R_LIBS")
                               R_LIBS 
"/home/Hornik/dse/CHECKED/library:.." 

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