Re: [Rd] Clarification for readChar man page

2007-06-14 Thread Jeffrey Horner
Duncan Murdoch wrote: > On 6/14/2007 10:49 AM, Jeffrey Horner wrote: >> Hi, >> >> Here's a patch to the readChar manual page (R-trunk as of today) that >> better clarifies readChar's return value. > > Your update is not right. For example: > > x <- as.raw(32:96) > readChar(x, nchars=rep(2,100)

Re: [Rd] Clarification for readChar man page

2007-06-14 Thread Duncan Murdoch
On 6/14/2007 10:49 AM, Jeffrey Horner wrote: > Hi, > > Here's a patch to the readChar manual page (R-trunk as of today) that > better clarifies readChar's return value. Your update is not right. For example: x <- as.raw(32:96) readChar(x, nchars=rep(2,100)) This returns a character vector of

[Rd] Clarification for readChar man page

2007-06-14 Thread Jeffrey Horner
Hi, Here's a patch to the readChar manual page (R-trunk as of today) that better clarifies readChar's return value. It could use some work as I'd also like to add some text about using nchar() to find the length of the string that readchar() returns, but I'm unsure which of type="bytes" or typ