file names under Windows [was: [R] please help me!]
Duncan Murdoch
dmurdoch at pair.com
Thu Jan 29 23:33:43 CET 2004
On 29 Jan 2004 14:20:26 -0600, you wrote:
>I always find it tedious to remember how to write file names in
>Windows (there are rules about '\' and '/' characters) so I use the
>file.choose() function, which brings up a chooser panel. Although you
>haven't said what you want to do with the file, let's assume you are
>going to source some R code in the file. Then you could use
>
>source(file.choose())
I've occasionally thought that "file = file.choose()" would be better
than no default in a lot of functions that take filenames as
arguments, e.g. file, the read* and write* functions, the bitmap
device, Sweave, etc.
Duncan Murdoch
More information about the R-help
mailing list