Re: [R] Potential bug in readLines when reading empty lines

2025-06-26 Thread Richard O'Keefe
rker for a line." > > > >If I interpret this correctly, this is exactly the type of generic line end > >handling algorithm that you describe. However, it appears to not be working > >correctly. > > > >-Oorspronkelijk bericht----- > >Van: Jeff Newmiller >

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Enrico Schumann
Quoting "Heuvel, E.G. van den (Guido)" : -Oorspronkelijk bericht- Van: Enrico Schumann Verzonden: woensdag 25 juni 2025 16:44 Aan: Heuvel, E.G. van den (Guido) CC: 'r-help@R-project.org' Onderwerp: Re: [R] Potential bug in readLines when reading empty lines

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Enrico Schumann
Quoting "Heuvel, E.G. van den (Guido) via R-help" : Hi all, I encountered some weird behaviour with readLines() recently, and I am wondering if this might be a bug, or, if it is not, how to resolve it. The issue is as follows: If I have a text file where a line ends with just a carriage

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Rui Barradas
Às 15:43 de 25/06/2025, Enrico Schumann escreveu: Quoting "Heuvel, E.G. van den (Guido) via R-help" : Hi all, I encountered some weird behaviour with readLines() recently, and I am wondering if this might be a bug, or, if it is not, how to resolve it. The issue is as follows: If I have a

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Heuvel, E.G. van den (Guido) via R-help
-Oorspronkelijk bericht- Van: Enrico Schumann Verzonden: woensdag 25 juni 2025 16:44 Aan: Heuvel, E.G. van den (Guido) CC: 'r-help@R-project.org' Onderwerp: Re: [R] Potential bug in readLines when reading empty lines [Externe email] Quoting "Heuvel, E.G. van de

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Heuvel, E.G. van den (Guido) via R-help
, it appears to not be working correctly. -Oorspronkelijk bericht- Van: Jeff Newmiller Verzonden: woensdag 25 juni 2025 16:10 Aan: Heuvel, E.G. van den (Guido) ; Heuvel, E.G. van den (Guido) via R-help ; 'r-help@R-project.org' Onderwerp: Re: [R] Potential bug in readLines when re

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Jeff Newmiller via R-help
pe of generic line end >handling algorithm that you describe. However, it appears to not be working >correctly. > >-Oorspronkelijk bericht- >Van: Jeff Newmiller >Verzonden: woensdag 25 juni 2025 16:10 >Aan: Heuvel, E.G. van den (Guido) ; Heuvel, E.G. van >den (Guido

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Duncan Murdoch
On 2025-06-25 10:10 a.m., Jeff Newmiller via R-help wrote: As a longtime programmer, I would say that your file is at fault... there is no programming standard that says any software needs to handle this kind of data in any defined way. The documentation for readLines() says this: "Whatever

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Ebert,Timothy Aaron
, or a file that has been edited by multiple users. Tim -Original Message- From: R-help On Behalf Of Heuvel, E.G. van den (Guido) via R-help Sent: Wednesday, June 25, 2025 3:00 AM To: 'r-help@R-project.org' Subject: [R] Potential bug in readLines when reading empty lines [E

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Jeff Newmiller via R-help
As a longtime programmer, I would say that your file is at fault... there is no programming standard that says any software needs to handle this kind of data in any defined way. More specifically, the only standards-based requirements I am aware of require the programmer to specify whether the f

Re: [R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Duncan Murdoch
On 2025-06-25 2:59 a.m., Heuvel, E.G. van den (Guido) via R-help wrote: Hi all, I encountered some weird behaviour with readLines() recently, and I am wondering if this might be a bug, or, if it is not, how to resolve it. The issue is as follows: If I have a text file where a line ends with j

[R] Potential bug in readLines when reading empty lines

2025-06-25 Thread Heuvel, E.G. van den (Guido) via R-help
Hi all, I encountered some weird behaviour with readLines() recently, and I am wondering if this might be a bug, or, if it is not, how to resolve it. The issue is as follows: If I have a text file where a line ends with just a carriage return (\r, CR) while the next line is empty and ends in