[Rd] Can the output of Sys.getenv() be improved?
maechler at stat.math.ethz.ch
Sat Apr 19 14:57:04 CEST 2014
>>>>> William Dunlap <wdunlap at tibco.com>
>>>>> on Fri, 18 Apr 2014 16:50:22 +0000 writes:
>> 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?
> Attaching the class "simple.list" to the output of
> Sys.getenv() gives it a nicer print method:
>> structure(Sys.getenv(), class="simple.list")
> _ !
Good idea; this is something we could do unconditionally, i.e.,
return from Sys.getenv().
It would hardly break code,
as simple.list only has a print and a `[` method.
It would help people like Jun and could hardly harm, AFAICS.
More information about the R-devel