unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39665: r-readr in a container has got no timezone data
@ 2020-02-18 15:19 Wiktor Żelazny
  2020-02-20 12:44 ` zimoun
  0 siblings, 1 reply; 2+ messages in thread
From: Wiktor Żelazny @ 2020-02-18 15:19 UTC (permalink / raw)
  To: 39665

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

Related to [1]. Reproducing:

   guix environment -C --pure --ad-hoc r r-readr
   Rscript -e 'library(readr); default_locale()'

A hack that fixes this issue is to include tzdata among the environment
inputs, and to set

   TZDIR=/gnu/store/$(ls -F /gnu/store | grep tzdata.*/ | head -n 1)share/zoneinfo

(actually, one needs also coreutils and grep to do that, but that’s
beyond the point). I haven’t tried it (yet?), but maybe it suffices to
add tzdata to r-readr inputs in the package definition to fix this
issue.

WŻ

[1]: https://github.com/tidyverse/readr/issues/952

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#39665: r-readr in a container has got no timezone data
  2020-02-18 15:19 bug#39665: r-readr in a container has got no timezone data Wiktor Żelazny
@ 2020-02-20 12:44 ` zimoun
  0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2020-02-20 12:44 UTC (permalink / raw)
  To: 39665

Dear,

On Tue, 18 Feb 2020 at 16:21, Wiktor Żelazny <wz@freeshell.de> wrote:
>
> Related to [1]. Reproducing:
>
>    guix environment -C --pure --ad-hoc r r-readr
>    Rscript -e 'library(readr); default_locale()'

The output is:

--8<---------------cut here---------------start------------->8---
Error: Unknown TZ UTC
In addition: Warning message:
In OlsonNames() : no Olson database found
Execution halted
sh: rm: command not found
--8<---------------cut here---------------end--------------->8---


> (actually, one needs also coreutils and grep to do that, but that’s
> beyond the point). I haven’t tried it (yet?), but maybe it suffices to
> add tzdata to r-readr inputs in the package definition to fix this
> issue.

Just adding tzdata to the propgapated-inputs list is not enough.


Well, I do not understand why the test suite pass. It should fail if
locale date is required... I am missing a point. Especially when
reading these 2 comments:

https://github.com/tidyverse/readr/issues/952#issuecomment-451244171
https://github.com/tidyverse/readr/issues/952#issuecomment-451255375

Let investigate more...


Thank you for the report.
All the best,
simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-20 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-18 15:19 bug#39665: r-readr in a container has got no timezone data Wiktor Żelazny
2020-02-20 12:44 ` zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).