[R] Problem with format(,"%G-%V") - Segfault

Duncan Murdoch murdoch.duncan at gmail.com
Fri Apr 30 20:05:35 CEST 2010


On 30/04/2010 1:17 PM, Matthias Rieber wrote:
> Hi,
>
> I've some problems with the new R version converting date to year-week:
>
> R version 2.11.0 (2010-04-22)
> Copyright (C) 2010 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
>  > load("test.data.R")
>  > str(test.data)
> Class 'Date'  num [1:3599546] 13888 14166 14188 14189 14189 ...
>  > result <- format(test.data, format="%G-%V")
> Error: segfault from C stack overflow
>  >
>
> this happens with a self compiled R version and the debian packages.
> The same operation works with R 2.9.x and R 2.10.x

Have you tried R-patched?  This looks something like PR#14267 
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14267) which has 
been fixed there.

Duncan



More information about the R-help mailing list