From hp@ge@ @ending from fredhutch@org  Wed Sep 26 22:03:40 2018
From: hp@ge@ @ending from fredhutch@org (=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=)
Date: Wed, 26 Sep 2018 13:03:40 -0700
Subject: [Rd] Bug in printing array of type "list"
Message-ID: <8610e0fe-ea37-8fd6-9cb3-8be9654b81ad@fredhutch.org>

Hi,

This array is of type "list" but print() reports otherwise:

   a1 <- array(list(1), 2:0)

   typeof(a1)
   # [1] "list"

   a1
   # <2 x 1 x 0 array of character>
   #      [,1]
   # [1,]
   # [2,]

No such problem with an array of type "logical":

   a2 <- array(NA, 2:0)

   typeof(a2)
   # [1] "logical"

   a2
   # <2 x 1 x 0 array of logical>
   #      [,1]
   # [1,]
   # [2,]

Thanks,
H.

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] Bug in printing array of type "list"
=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=