[Rd] (PR#9248) Incomplete loading of files into Windows script

ripley at stats.ox.ac.uk ripley at stats.ox.ac.uk
Sun Sep 24 08:07:39 CEST 2006


Please, we do need complete reproduction instructions (and not 
speculation) as the FAQ asks.

1) How exactly did you read the file in?
2) 'longer' than what?
3) What line ending is this?

I've just tried loading a 1000-line 50kb file using the 'Open Script' menu 
item, and it worked with CRLF, LF or CR line endings.

Some guesses are that there are control characters in the file or an 
encoding problem (what is your locale?).


On Sun, 24 Sep 2006, klaus.thul at mac.com wrote:

> Full_Name: Klaus Thul
> Version: R2.3.1 (CRAN binary for Windows)
> OS: Windows XP
> Submission from: (NULL) (220.132.142.175)
>
>
> When I read a longer text file created on Mac OS X into the built-in script
> editor of R for windows, it is read only incomplete. The same file can be loaded
> without problem e. g. into WordPad.
>
> I think the reason for the behavior is that Mac OS X uses different EOL markers,
> and R for windows doesn't handle these markers correctly. I don't have access to
> an UNIX/LINUX system, but I guess files generated on these systems will cause
> the same problem.
>
> I can provide an example file which fails if necessary.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-devel mailing list