Skip to content

Instantly share code, notes, and snippets.

@samrat
Created October 11, 2021 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samrat/b0cce276efc3309785f270b385036f91 to your computer and use it in GitHub Desktop.
Save samrat/b0cce276efc3309785f270b385036f91 to your computer and use it in GitHub Desktop.
Nix config for Bayes Rules
{ 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