[R-SIG-Mac] incomplete final line?

Duncan Murdoch murdoch.duncan at gmail.com
Wed Nov 2 11:11:07 CET 2011


On 11-11-01 10:23 PM, Carl Witthoft wrote:
> Yeah, I got that part :-).  The question is why R2.14 is suddenly
> complaining about files which have been fine for the last 4 years.  What
> changed, and is there a way I can fix it?
> (other than adding a final 'return' in R.app GUI editor so there's a
> blank line in each file)

I don't think R has changed.  I've seen that message for a long time. 
But perhaps source() (or whatever method you used to read the file) has 
changed to start using readLines.

Duncan Murdoch

>
>
> On 11/1/11 9:41 PM, Duncan Murdoch wrote:
>> On 11-11-01 6:27 PM, Carl Witthoft wrote:
>>> Just installed R2.14.0 . Sourcing just about any existing .r file
>>> gives me
>>> Warning message:
>>> In readLines(file) :
>>> incomplete final line found on [file name]
>>>
>>> Any ideas?
>>
>> That means that the final line has no line terminator (LF on
>> Unix-alikes, or CR LF on Windows).
>>
>> Duncan Murdoch
>>
>



More information about the R-SIG-Mac mailing list