Re: [Rd] Format an empty data frame

2014-01-24 Thread Jeroen Ooms
On Fri, Jan 24, 2014 at 12:03 AM, Kevin Ushey wrote: > This behaviour is fixed in R-devel (tested with r64727) Was fixed a while ago: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15567 __ R-devel@r-project.org mailing list https://stat.ethz.ch/m

Re: [Rd] Format an empty data frame

2014-01-24 Thread Kevin Ushey
This behaviour is fixed in R-devel (tested with r64727) > format( data.frame() ) data frame with 0 columns and 0 rows -Kevin On Thu, Jan 23, 2014 at 11:59 PM, Yihui Xie wrote: > Hi, > > Here seems to be a corner case in which format() fails: > >> format(data.frame()) > Error in .subset2(x, i, e

[Rd] Format an empty data frame

2014-01-24 Thread Yihui Xie
Hi, Here seems to be a corner case in which format() fails: > format(data.frame()) Error in .subset2(x, i, exact = exact) : subscript out of bounds > sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en