Add R template

This commit is contained in:
Invariantspace 2023-10-30 17:48:54 -07:00
parent 445e4b5743
commit d370593769
2 changed files with 19 additions and 0 deletions

19
template/r/flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
(rWrapper.override {
packages = with rPackages; [ tidyverse ];
})
];
};
});
}