I have string that looks like this
string <- "\n\t\t\t1,2\n\t\t\t3,4\n\t\t"
You can convert a character string to a thing that behaves a bit like a file with
textConnection and then feed it to
> read.csv(textConnection(string),head=FALSE) V1 V2 1 1 2 2 3 4 3 NA NA
the stray tabs after the last newline produce that last line of NA values, you'd need to take care of those some way.