Re: [Rd] problem with pipes, textConnection and read.dcf

2021-08-10 Thread Martin Maechler
> peter dalgaard > on Tue, 10 Aug 2021 22:00:16 +0200 writes: > It's not a pipe issue: >> textConnection(gsub(gsub(L, pattern = " ", replacement = ""), pattern = " ", replacement = "")) > Error in textConnection(gsub(gsub(L, pattern = " ", replacement = ""), : > ar

Re: [Rd] problem with pipes, textConnection and read.dcf

2021-08-10 Thread peter dalgaard
It's not a pipe issue: > textConnection(gsub(gsub(L, pattern = " ", replacement = ""), pattern = " ", > replacement = "")) Error in textConnection(gsub(gsub(L, pattern = " ", replacement = ""), : argument 'object' must deparse to a single character string > textConnection(gsub(L, pattern = "

[Rd] problem with pipes, textConnection and read.dcf

2021-08-10 Thread Gabor Grothendieck
This gives an error bit if the first gsub line is commented out then there is no error even though it is equivalent code. L <- c("Variable:id", "Length:112630 ") L |> gsub(pattern = " ", replacement = "") |> gsub(pattern = " ", replacement = "") |> textConnection() |> read