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] [External] problem with pipes, textConnection and read.dcf

2021-08-10 Thread luke-tierney
Not an issue with pipes. The pipe just rewrites the expression to a nested call and that is then evaluated. The call this produces is quote(L |> +gsub(pattern = " ", replacement = "") |> +gsub(pattern = " ", replacement = "") |> +textConnection() |> +read.dcf()) read.dcf(textCon

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

Re: [Rd] attach "warning" is a message

2021-08-10 Thread Martin Maechler
> Simon Urbanek > on Tue, 10 Aug 2021 11:28:19 +1200 writes: > Barry, > it is not a warning nor plain output, it is a message, so you can use >> d = data.frame(x=1:10) >> x=1 >> suppressMessages(attach(d)) >> > Looking at the history, this used to be c

[Rd] R 4.1.1 is released

2021-08-10 Thread Peter Dalgaard
The build system rolled up R-4.1.1.tar.gz (codename "Kick Things") this morning. The list below details the changes in this release. You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.1.1.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for