[R] Linux -> Win2K file transfer

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Sat Oct 21 00:10:38 CEST 2000


ben at zoo.ufl.edu writes:

>   Just a quick question, in case I'm doing something really boneheaded
> that could be easily sorted out.
> 
>   I'm attempting to save() datasets on Linux (R 1.1.1) and load() them on
> Win2K (rw1011, fetched from CRAN today).  I get the "restore file
> corrupted" message every time.  I've tried saving with ascii=TRUE and
> FALSE, and the ASCII versions look OK (it's my impression from reading
> docs that even binary format files *ought* to be readable on both
> platforms). I don't think it's a DOS/Unix format (linefeed etc.) problem,
> as I can source() files transferred in the same way.
>   Didn't find anything in the FAQ etc..
>   Has anyone seen this?

It's supposed to work. Since you ask for suggestions of
boneheadedness:

Did you by any chance transfer the files with FTP in ascii mode or
with mcopy -t or similar?

Are you saying that the ascii=TRUE saves didn't work either?

(R is generally tolerant to text files and CR/LF issues, so it's not a
proof that source() works - and even so, the transfer that mangles
binaries would generally be the one that converts textfiles correctly
and vice versa)

-- 
   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