[Rd] R_LIBS setting in R -d gdb
Prof Brian Ripley
Sun, 18 Feb 2001 11:05:08 +0000 (GMT)
On Sun, 18 Feb 2001, Kurt Hornik wrote:
> >>>>> 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")
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.
Brian D. Ripley, firstname.lastname@example.org
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
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: email@example.com