> 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
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 = "
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