# This file was generated by the {rix} R package v0.5.1.9000 on 2024-02-02 # with following call: # >rix(r_ver = "976fa3369d722e76f37c77493d99829540d43845", # > r_pkgs = c("dplyr", # > "ggplot2"), # > system_pkgs = NULL, # > git_pkgs = NULL, # > tex_pkgs = NULL, # > ide = "rstudio", # > project_path = ".", # > overwrite = TRUE, # > print = TRUE) # It uses nixpkgs' revision 976fa3369d722e76f37c77493d99829540d43845 for reproducibility purposes # which will install R version 4.3.1 # Report any issues to https://github.com/b-rodrigues/rix let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/976fa3369d722e76f37c77493d99829540d43845.tar.gz") {}; rpkgs = builtins.attrValues { inherit (pkgs.rPackages) dplyr ggplot2; }; system_packages = builtins.attrValues { inherit (pkgs) R glibcLocales nix ; }; rstudio_pkgs = pkgs.rstudioWrapper.override { packages = [ rpkgs ]; }; in pkgs.mkShell { LOCALE_ARCHIVE = if pkgs.system == "x86_64-linux" then "${pkgs.glibcLocales}/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 rstudio_pkgs ]; shellHook = "R --vanilla"; }