[R] using data() in an example

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Mar 3 10:29:02 CET 2003


ripley at stats.ox.ac.uk writes:

> ?data says
> 
>         4.  files ending `.csv' are read using `read.table(..., header
>            = TRUE, sep = ";")', and also result in a data frame.
> 
> That may well be found first, so you need to rename bailey.csv.
> 
> You don't tell us your OS, but it looks like Windows where sorts often 
> have c before R in the default locale:

Yikes! Thanks for pointing this out, Brian. 

I think we should consider it a bug(-let) and change data() to ensure
that .R files are found before any other extensions, exactly because
of this sort of application.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list