search for: opqrstu

Displaying 3 results from an estimated 3 matches for "opqrstu".

2018 May 26
2
Buffering in R 3.5 connections causes incorrect data in readChar
...adChar is not aware of the buffering, so it reads from the end of the buffer, rather than the current position in the file. This is a significant change of behavior from R-3.4.4. Below is a test case that I used to home in on the problem. --- p<-"test2.txt" cat("abcdefg hijklmn opqrstu",file=p) cat("read char after readline (h)\n") con <- file(p,"r") invisible(readLines(con,1)) print(readChar(con,1)) close(con) cat("read char after readline and seek (h)\n") con <- file(p,"r") invisible(readLines(con,1)) invisible(seek(con,seek(...
2018 May 29
1
Buffering in R 3.5 connections causes incorrect data in readChar
...es it on a text > connection. Buffering and pushback are only used on (readable) text > connections. I will check whether we could report a runtime error. > > Best > Tomas > > --- >> >> p<-"test2.txt" >> cat("abcdefg >> hijklmn >> opqrstu",file=p) >> >> cat("read char after readline (h)\n") >> con <- file(p,"r") >> invisible(readLines(con,1)) >> print(readChar(con,1)) >> close(con) >> >> cat("read char after readline and seek (h)\n") >> con &...
2018 May 29
0
Buffering in R 3.5 connections causes incorrect data in readChar
...ed with binary connections, but the example uses it on a text connection. Buffering and pushback are only used on (readable) text connections. I will check whether we could report a runtime error. Best Tomas > --- > > p<-"test2.txt" > cat("abcdefg > hijklmn > opqrstu",file=p) > > cat("read char after readline (h)\n") > con <- file(p,"r") > invisible(readLines(con,1)) > print(readChar(con,1)) > close(con) > > cat("read char after readline and seek (h)\n") > con <- file(p,"r") > invi...