Re: [Rd] about textConnection

2011-03-14 Thread Kenn Konstabel
Hi there, Thanks, but I'm using R 2.12.2(2011-02-25) and ?textConnection says everything you quoted except the last sentence ("'object' should be the name of a character vector: however, short expressions will be accepted provided they deparse to less than 60 bytes."). Can it be that the help

Re: [Rd] about textConnection

2011-03-14 Thread Simon Urbanek
Kenn, you might have had a point a while ago, but you may want to check most recent R and re-evaluate: ?textConnection [...] object: character. A description of the connection. For an input this is an R character vector object, and for an output connection the name for th

Re: [Rd] about textConnection

2011-03-14 Thread Kenn Konstabel
Hello, `textConnection` prepares arguments for an internal function, and one of these arguments is "description" that must be a character vector of length 1 (or so it seems). Now the one and only argument you usually give to `textConnection` is called "object"; from the code you can see how this

[Rd] about textConnection

2011-03-10 Thread WANGSONG
I need read a table in a string with special format. I used read.csv and textConnection function. But i am confuse about textConnection by follow code. case A: It is OK£¡ str0 <- '{"abc",{"def","X,1&Y,2&Z,3"}}' str1 <- strsplit(str0,'"')[[1]][6] str2 <- gsub("&","\n", str1) con <- textC