From JHZhang at mdanderson.org  Fri Apr 18 19:03:16 2014
From: JHZhang at mdanderson.org (Zhang,Jun)
Date: Fri, 18 Apr 2014 17:03:16 +0000
Subject: [Rd] Can the output of Sys.getenv() be improved?
In-Reply-To: <CANROs4cF-4xRZAq7uGoERdRMdV41qg4kVDDEo-OVuudu49_sWw@mail.gmail.com>
References: <8EE4E2C595735A4EAEC2A3311537FE4D15B84B24@DCPWPEXMBX03.mdanderson.edu>
	<CANROs4cF-4xRZAq7uGoERdRMdV41qg4kVDDEo-OVuudu49_sWw@mail.gmail.com>
Message-ID: <8EE4E2C595735A4EAEC2A3311537FE4D15B84B5A@DCPWPEXMBX03.mdanderson.edu>

That is a great command to have. Once the better formatted envvars with value is listed, I noticed that JAGS-3.3.0/bin is in the PATH, so that problem is also solved for my user. 

Thanks,
Jun

-----Original Message-----
From: xieyihui at gmail.com [mailto:xieyihui at gmail.com] On Behalf Of Yihui Xie
Sent: Friday, April 18, 2014 11:52 AM
To: Zhang,Jun
Cc: r-devel at r-project.org
Subject: Re: [Rd] Can the output of Sys.getenv() be improved?

For your first question, try str(as.list(Sys.getenv())). I do not know the answer for the JAGS question, and I'll leave it to someone else to tell you which mailing list to use for such questions...

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name


On Fri, Apr 18, 2014 at 11:38 AM, 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?
>
> Jun



[Rd] Can the output of Sys.getenv() be improved?
Zhang,Jun