1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/pkgs/development/r-modules
Tuomas Tynkkynen b465dc202f boost: Kill unnecessary 'lib' output
This was split in somewhere pre-2014 without the current infra which
automates parts of this, in particular the output propagation.
2016-04-28 00:41:28 +03:00
..
patches Remove no longer (or never) referenced patches 2016-01-24 02:02:21 +01:00
bioc-annotation-packages.nix r-modules: update CRAN, add Bioconductor data pkgs 2016-03-22 22:50:54 -07:00
bioc-experiment-packages.nix r-modules: update CRAN, add Bioconductor data pkgs 2016-03-22 22:50:54 -07:00
bioc-packages.nix work on fixing up bioconductor packages 2016-03-31 16:16:34 -07:00
cran-packages.nix work on fixing up bioconductor packages 2016-03-31 16:16:34 -07:00
default.nix boost: Kill unnecessary 'lib' output 2016-04-28 00:41:28 +03:00
generate-r-packages.R r-modules: update CRAN, add Bioconductor data pkgs 2016-03-22 22:50:54 -07:00
generate-shell.nix r-modules: use HTTPS, allow passing args from generated set, use MRAN 2015-11-25 11:39:28 +01:00
generic-builder.nix R: fix Darwin build 2016-01-06 22:20:40 +01:00
irkernel-packages.nix r-modules: regenerate CRAN, BIOC and IRKernel 2015-11-25 11:39:28 +01:00
README.md nixpkgs manual: add basic R documentation, fixes #13362 2016-02-22 10:16:06 +01:00
test-evaluation.nix
wrapper.nix

R packages

Installation

Define an environment for R that contains all the libraries that you'd like to use by adding the following snippet to your $HOME/.nixpkgs/config.nix file:

{
    packageOverrides = super: let self = super.pkgs; in
    {

        rEnv = super.rWrapper.override {
            packages = with self.rPackages; [ 
                devtools
                ggplot2
                reshape2
                yaml
                optparse
                ];
        };
    };
}

Then you can use nix-env -f "<nixpkgs>" -iA rEnv to install it into your user profile. The set of available libraries can be discovered by running the command nix-env -f "<nixpkgs>" -qaP -A rPackages. The first column from that output is the name that has to be passed to rWrapper in the code snipped above.

Updating the package set

Rscript generate-r-packages.R cran  > cran-packages.nix.new
mv cran-packages.nix.new cran-packages.nix

Rscript generate-r-packages.R bioc  > bioc-packages.nix.new
mv bioc-packages.nix.new bioc-packages.nix

Rscript generate-r-packages.R irkernel  > irkernel-packages.nix.new
mv irkernel-packages.nix.new irkernel-packages.nix

generate-r-packages.R <repo> reads <repo>-packages.nix, therefor the renaming.

Testing if the Nix-expression could be evaluated

nix-build test-evaluation.nix --dry-run

If this exits fine, the expression is ok. If not, you have to edit default.nix