Skip to content

Instantly share code, notes, and snippets.

@cfhammill
Created August 15, 2019 11:20
Show Gist options
  • Save cfhammill/5dc37bdeadbfb20c5bee4c975a148477 to your computer and use it in GitHub Desktop.
Save cfhammill/5dc37bdeadbfb20c5bee4c975a148477 to your computer and use it in GitHub Desktop.
A simple nix environment for R analyses. Copy to a folder where you'd like to run an analysis and run `nix-shell`
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [ git emacs ] ++
(with rPackages;
[
R
ggplot2
brms
tidyverse
bayesplot
rstan
rstanarm
rstantools
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment