[Rd] small bug in base::formatC (PR#13474)

Simon Urbanek simon.urbanek at r-project.org
Tue Jan 27 18:50:58 CET 2009


On Jan 27, 2009, at 8:20 , bernd_bischl at gmx.net wrote:

> Full_Name: Bernd Bischl
> Version: 2.8.1
> OS: Windows XP Professional
> Submission from: (NULL) (129.217.207.95)
>
>
> Hi,
>
> there seems to be a small bug in formatC:
>
> formatC("foo", format="s", mode="charcacter")
>
> Error in formatC("foo", format = "s", mode = "charcacter") :
>  'mode' must be "double" ("real") or "integer"
>

I think you meant "character", not "charcacter" ;).
Anyway, thanks, it should be now fixed.

Cheers,
S



> ?formatC
> says:
>
> mode:  "double" (or "real"), "integer" or "character". Default:  
> Determined from
> the storage mode of x
>
> I tested this in the 2.8.1 release and the latest development  
> version, both on
> XP Professional.
>
> sessionInfo for the second one:
>
> R version 2.9.0 Under development (unstable) (2009-01-22 r47686)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany. 
> 1252;LC_MONETARY=German_Germany. 
> 1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> Regards,
>
> Bernd Bischl
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



More information about the R-devel mailing list