There are two ways to express file paths with the Windows environment:
> a=file.choose()
> a
[1] "C:\\Documents and Settings\\rbaer\\Desktop\\_VNT_Test\\coordFocused 20k F5 
0ng Ki8751 t20.txt"

and

>b= paste(getwd(),"/",dir()[1],sep="")
>b
[1] "C:/Documents and Settings/rbaer/Desktop/_VNT_Test/coordFocused 20k F5 0ng 
Ki8751 t20.txt"

I have 2 questions:

1.  Is it possible to get file.choose() to use the forward slash rather than 
the escaped back slash.  It would be nice
if it were consistent with dir() and getwd()

2.  If one has a path string like the escaped backslash pattern shown in 1 
above, how does one do a strsplit() on these escaped backslashs?

Thanks,
Rob

---------------------
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksville College of Osteopathic Medicne
A. T. Still University of Health Sciences
800 W. Jefferson St.
Kirksville, MO 63501
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to