[R] Windows <--> UNIX File Conversion

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Dec 12 23:30:54 CET 2000


Dinil Penne <pennedinil at excite.com> writes:

> I thought I'd field this question in case someone has already done this,
> before proceeding with trying to develop a function on my own.
> 
> I'm generating a number of files and to keep track of them, I'm also
> outputting the names of these files to external files & datasets. Depending
> on the platform I'm working on, Windows or Unix, i'd like to be able to
> switch between UNIX filenames (with the "/") and Windows filenames ("\").
> Does someone already have a function to do this? 

file.path() maybe?

-- 
   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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list