nixpkgs/pkgs/applications
Chris Hodapp 7638578342 RStudio: Optionally allow packages from custom R environment
https://nixos.org/nixpkgs/manual/#r-packages contains a method for
setting up an R environment with a specific set of libraries, and it
creates an R wrapper which points R to those libraries.

The package RStudio relies on the standard R package, which then
cannot access any of the libraries specified in a custom R
environment.  While one may easily use pkgs.rstudio.override to change
rstudio's R dependency to the custom R environment, this accomplishes
nothing because while RStudio runs the correct R wrapper it clears out
the environment variable R_LIBS_SITE - and so it is still unable to
use any of those packages.

In order to work around this problem, these changes allow the user to
optionally modify rstudio's wrapper to set environment variable
R_PROFILE_USER to an R script which sets R's .libPaths(..) to point to
the same libraries; that script is generated from R_LIBS_SITE in the R
wrapper.

By default, this change has no effect.  If R is overridden to
something else, and if useRPackages is changed from its default of
false, then the change described above is made; for instance:

{
  packageOverrides = pkgs: let self = pkgs.pkgs; in
  rec {
    rEnv = pkgs.rWrapper.override {
      packages = with self.rPackages; [
        dplyr ggplot2 e1071 rpart reshape
      ];
    };
    rstudioEnv = pkgs.rstudio.override { R = rEnv; useRPackages = true; };
  };
}
2017-01-27 18:54:50 -05:00
..
altcoins altcoins.stellar-core: fix evaluation 2017-01-15 14:02:38 +01:00
audio gnutls33: remove 2017-01-27 18:37:24 +01:00
backup add self to crashplan maintainers 2016-11-13 14:41:57 -05:00
display-managers treewide: quote URLs in my packages 2016-11-24 01:17:52 +03:00
editors RStudio: Optionally allow packages from custom R environment 2017-01-27 18:54:50 -05:00
gis qgis: enableParallelBuilding 2017-01-22 17:15:24 +01:00
graphics rawtherapee: 4.2.1025 -> 5.0 2017-01-27 11:28:46 +01:00
inferno
misc rtv: 1.13.0 -> 1.14.1 2017-01-26 15:43:19 -08:00
networking gajim: Enable running test suite 2017-01-27 21:06:21 +01:00
office homebank: 5.1.2 -> 5.1.3 2017-01-25 22:16:26 +01:00
science coq-8.4: fix build of ssreflect and mathcomp 2017-01-25 13:14:31 +00:00
search Remove pycairo from top-level 2016-08-14 13:52:42 +02:00
taxes
version-management cvs: patch against CVE-2012-0804 (heap overflow) 2017-01-25 07:24:19 -05:00
video Merge pull request #22157 from MP2E/obs_studio_update 2017-01-26 21:37:01 -05:00
virtualization qemu: 2.7 -> 2.8, drop 2.7 2017-01-26 20:23:40 -05:00
window-managers Merge pull request #22108 from yorickvP/master 2017-01-24 21:35:11 +00:00