Created
January 6, 2024 19:23
-
-
Save philipp-baumann/4f7fbf40aff71f8b32b8950d207b60d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file was generated by the {rix} R package v0.4.1 on 2024-01-06 | |
# with following call: | |
# >rix(r_ver = "63143ac2c9186be6d9da6035fa22620018c85932", | |
# > r_pkgs = c("dplyr", | |
# > "data.table"), | |
# > overwrite = TRUE) | |
# It uses nixpkgs' revision 63143ac2c9186be6d9da6035fa22620018c85932 for reproducibility purposes | |
# which will install R version latest | |
# Report any issues to https://github.com/b-rodrigues/rix | |
let | |
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/63143ac2c9186be6d9da6035fa22620018c85932.tar.gz") {}; | |
rpkgs = builtins.attrValues { | |
inherit (pkgs.rPackages) dplyr data_table; | |
}; | |
system_packages = builtins.attrValues { | |
inherit (pkgs) R glibcLocalesUtf8 glibc; | |
}; | |
in | |
pkgs.mkShell { | |
LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive" else ""; | |
LANG = "en_US.UTF-8"; | |
LC_ALL = "en_US.UTF-8"; | |
LC_TIME = "en_US.UTF-8"; | |
LC_MONETARY = "en_US.UTF-8"; | |
LC_PAPER = "en_US.UTF-8"; | |
LC_MEASUREMENT = "en_US.UTF-8"; | |
buildInputs = [ rpkgs system_packages pkgs.glibc pkgs.bash]; | |
shellHook = "R --vanilla"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment