[Rd] printing of lists (PR#746)

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Fri, 24 Nov 2000 14:06:08 +0100 (MET)


>>>>> "david" == david firth <david.firth@nuffield.oxford.ac.uk> writes:

    david> This looks to me like a bug in the print method for lists.
(which is hidden in C)

    david> In printing "test.list" below, the labels $A$subset and $B$subset
    david> fail to appear.

    david> I find the same behaviour under linux and Windows (using R 1.1.1 -- 
    david> for version info see below) with R --vanilla.

    >> test.list<-list(A=list(formula=Y~X,subset=TRUE), B=list(formula=Y~X,subset=TRUE))
    >> test.list$A
    david> $formula
    david> Y ~ X

    david> $subset
    david> [1] TRUE

    >> test.list
    david> $A
    david> $A$formula
    david> Y ~ X


    david> [1] TRUE


    david> $B
    david> $B$formula
    david> Y ~ X


    david> [1] TRUE


    >> version
    david> _                
    david> platform i686-pc-linux-gnu
    david> arch     i686             
    david> os       linux-gnu        
    david> system   i686, linux-gnu  
    david> status                    
    david> major    1                
    david> minor    1.1              
    david> year     2000             
    david> month    August           
    david> day      15               
    david> language R    

Bug confirmed, with the current "R-devel"opment version.
Another slight variation on the theme:

> list(A=list(bla="Y~X",no2=TRUE), B=list(blu=Y~X,no2=TRUE))
$A
$A$bla
[1] "Y~X"

$A$no2
[1] TRUE


$B
$B$blu
Y ~ X


[1] TRUE


Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><

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