[Rd] Sys.timezone() fails on Linux under Microsoft WSL

2021-04-13 Thread Brenton Wiernik
;timedatectl")) && !grepl("microsoft", system("uname -r", intern = TRUE), ignore.case = TRUE)) { "uname -r" returns for example: "5.4.72-microsoft-standard-WSL2" So checking for "microsoft" or &q

Re: [Rd] Sys.timezone() fails on Linux under Microsoft WSL

2021-04-14 Thread Brenton Wiernik
That would work. Sys.info()['release'] # release # "5.4.72-microsoft-standard-WSL2" Brenton From: Martin Maechler Sent: Wednesday, April 14, 2021 03:28 To: Brenton Wiernik Cc: r-devel@r-project.org Subject: Re: [Rd] Sys.timezone() fails on Linux

[Rd] Pipe bind restored in R 4.1.0?

2021-04-17 Thread Brenton Wiernik
Is the pipe bind `=>` operator likely to be restored by default in time for the 4.1 release? Brenton [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Additional an example for the forward pipe operator's documentation

2021-06-19 Thread Brenton Wiernik
> mtcars |> subset(cyl == 4) |> lm(formula = mpg ~ disp) This isn’t really a reliable approach. It works for `lm()`, where `data` is the second argument, but not for `glm()` unless the first _two_ arguments are named. mtcars |> subset(cyl == 4) |> glm(formula = mpg ~ disp, family = "gaussian")