You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R packages like readr that rely on tzdata fail to find tzdata when running in a Snakemake workflow using a Mambaforge singularity container and conda environment.
I have this issue too. I almost made an issue on r-lubridate before realizing that this is probably the correct place to fix this. If tzdata is installed in the conda environment, then I definitely want everything in the environment that understands the TZDIR variable to use this package.
For R in particular, there's also a package called r-tzdb which might be easier to interface with. It ships more than just tzdata (AFAIU also tzcode), but also some R-specific things.
Issue:
R
packages likereadr
that rely ontzdata
fail to findtzdata
when running in a Snakemake workflow using a Mambaforge singularity container and conda environment.StackOverflow Issue
This problem is remedied by setting
TZDIR
at the beginning of R scripts before loading packages:It has been suggested
tzdata
setTZDIR
to point to$CONDA_PREFIX/share/zoneinfo
to remedy this issueEnvironment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: