Created
October 11, 2021 22:04
-
-
Save samrat/b0cce276efc3309785f270b385036f91 to your computer and use it in GitHub Desktop.
Nix config for Bayes Rules
This file contains hidden or 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
{ pkgs ? import <nixpkgs> { } }: | |
let | |
my-r-pkgs = pkgs.rstudioWrapper.override { | |
packages = with pkgs.rPackages; [ | |
ggplot2 | |
tidyverse | |
tidybayes | |
rstan | |
bayesrules | |
janitor | |
rstanarm | |
bayesplot | |
# "broom.mixed" | |
modelr | |
e1071 | |
forcats | |
]; | |
}; | |
in pkgs.mkShell { | |
buildInputs = with pkgs;[ git glibcLocales openssl which openssh curl wget my-r-pkgs ]; | |
shellHook = '' | |
mkdir -p "$(pwd)/_libs" | |
export R_LIBS_USER="$(pwd)/_libs" | |
''; | |
GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment