From ggrothendieck at gmail.com  Fri Apr 18 22:54:15 2014
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Fri, 18 Apr 2014 16:54:15 -0400
Subject: [Rd] Can the output of Sys.getenv() be improved?
In-Reply-To: <8EE4E2C595735A4EAEC2A3311537FE4D15B84B24@DCPWPEXMBX03.mdanderson.edu>
References: <8EE4E2C595735A4EAEC2A3311537FE4D15B84B24@DCPWPEXMBX03.mdanderson.edu>
Message-ID: <CAP01uRkTUFEEGTYW9yg5OgE-K9AVSEoOeisGrR669hswa-9_KQ@mail.gmail.com>

On Fri, Apr 18, 2014 at 12:38 PM, Zhang,Jun <JHZhang at mdanderson.org> wrote:
> Within an R session, type Sys.getenv() will list all the environment variables, but each one of them occupies about a page, so scrolling to find one is difficult. Is this because I don't know how to use it or something could be improved? Usually I'm not sure the exact name of a variable but want to look it up. Recently I installed rjags, with the JAGS-3.4.0's lib, include, modules information provided during compilation. When I load rjags, I was told that it linked to JAGS 3.3.0 (a package also available in my environment). This made me think there must be a variable to make that to happen. What can I do to make rjags to link to JAGS 3.4.0?
>

Try this:

str(as.list(Sys.getenv()))

or this:

View(as.matrix(Sys.getenv()))



[Rd] Can the output of Sys.getenv() be improved?
Gabor Grothendieck