From bernd_bischl at gmx.net  Tue Jan 27 14:20:10 2009
From: bernd_bischl at gmx.net (bernd_bischl at gmx.net)
Date: Tue, 27 Jan 2009 14:20:10 +0100 (CET)
Subject: [Rd] small bug in base::formatC (PR#13474)
Message-ID: <20090127132010.12703282EFF8@mail.pubhealth.ku.dk>

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"

?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



[Rd] small bug in base::formatC (PR#13474)
bernd_bischl at gmx.net