Re: [R] WriteBin problem

2013-11-06 Thread Duncan Murdoch
On 06/11/2013 3:35 AM, Harutyun Khachatryan wrote: Dear R project officials, I have found that in R 3.0.1 version writeBin function of base package might not work correctly. For command writeBin(100,raw()) it answers 31 30 30 00 the last double 0 is differs from

Re: [R] WriteBin problem

2013-11-06 Thread Carl Witthoft
First of all, use readBin to verify you get the desired data back. Second, that '00' is, I believe the EOF character you'll find at the end of any file. Harutyun Khachatryan wrote Dear R project officials, I have found that in R 3.0.1 version writeBin function of base package might not

Re: [R] WriteBin problem

2013-11-06 Thread Jeff Newmiller
Sorry, Carl, but you missed the boat on both responses. Using readBin to read what they wrote won't help the OP if they don't understand what they are writing. Nor is byte 0 the EOF marker on any operating system I have ever used. (It does happen to be the string terminator for in-memory