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

2021-04-26 Thread Jim Hester
One way to avoid the call to timedatectl is to set the `TZ` environment variable on your machine to your local timezone, if this is set `Sys.timezone()` uses this and does not try to query timedatectl for the timezone. This is a common issue as well in docker containers, as like on WSL in docker t

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

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

2021-04-14 Thread Martin Maechler
> Brenton Wiernik > on Tue, 13 Apr 2021 09:15:50 -0400 writes: > In Microsoft’s Windows Subsystem for Linux (WSL or WSL2), > there is not system framework, so utilities that depend on > it fail. This includes timedatectl which R uses in > Sys.timezone(). The timedatect

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

2021-04-13 Thread Brenton Wiernik
In Microsoft’s Windows Subsystem for Linux (WSL or WSL2), there is not system framework, so utilities that depend on it fail. This includes timedatectl which R uses in Sys.timezone(). The timedatectl utility is present on Linux systems installed under WSL/WSL2, but is non-functional. So, when Sy