From simon.urbanek at r-project.org  Tue Jan 27 18:50:58 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 27 Jan 2009 12:50:58 -0500
Subject: [Rd] small bug in base::formatC (PR#13474)
In-Reply-To: <20090127132010.12703282EFF8@mail.pubhealth.ku.dk>
References: <20090127132010.12703282EFF8@mail.pubhealth.ku.dk>
Message-ID: <37248589-7CB9-4B04-8CE2-6E337E624645@r-project.org>


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



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