nixpkgs/pkgs/applications/editors
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
..
aewan treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
android-studio android-studio: use a dedicated fontconfig file 2017-01-10 13:36:02 +08:00
aseprite
atom atom: 1.13.0 -> 1.13.1 2017-01-25 17:22:55 -05:00
bluefish bluefish: 2.2.7 -> 2.2.9 2017-01-14 16:33:02 +01:00
brackets brackets: 1.5 -> 1.7 2016-10-21 19:42:57 -04:00
bvi
bviplus
codeblocks treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
deadpixi-sam sam: 2016-09-15 -> 2016-10-08 2016-10-17 10:21:29 +03:00
dhex treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
eclipse eclipse-plugin-checkstyle: 7.2.0 -> 7.3.0 2017-01-09 23:08:10 +01:00
ed ed: 1.13 -> 1.14.1 2017-01-15 18:27:59 +01:00
edbrowse treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
edit treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
elvis
emacs Merge pull request #20536 from TikhonJelvis/master 2016-12-13 23:28:37 +01:00
emacs-modes melpa-packages: 2017-01-24 2017-01-25 06:54:18 -05:00
flpsed
focuswriter
fte fte: init at 0.50.02 2016-12-19 16:15:59 +01:00
geany Geany: 1.28 -> 1.29 2016-11-13 17:51:11 +01:00
gobby treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
hecate hecate: init at 0.0.1 2016-10-18 19:40:23 +03:00
heme
hexcurse
hexedit treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
ht Merge branch 'hardened-stdenv' into staging 2016-08-22 01:19:35 +01:00
idea Updated versions of various Jetbrains applications, including PHPStorm, IntelliJ, PyCharm. 2017-01-22 21:29:11 +00:00
jedit
joe treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
kakoune kakoune: 2016-12-10 -> 2016-12-30, fix on Darwin 2016-12-30 14:27:49 -05:00
kdevelop
kdevelop5 kdevelop: 5.0.2 -> 5.0.3 2016-12-04 18:17:25 +01:00
kile kdeWrapper: allow wrapping several packages 2017-01-03 02:33:15 +03:00
leafpad treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
leo-editor leo-editor: 5.1 -> 5.3 2016-08-17 16:44:25 +03:00
lighttable treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
manuskript manuskript: cleanup of install 2016-08-29 22:55:45 +02:00
mg mg: fix darwin build 2016-08-16 19:25:43 +00:00
monodevelop treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
music/tuxguitar treewide: Use more makeLibraryPath 2016-08-23 02:56:12 +03:00
nano nano: add nix syntax hightlight, nano module: provide default (#21912) 2017-01-18 12:05:30 +01:00
ne treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
nedit Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-08-12 09:46:53 +00:00
neovim neovim: removed unncessary man configuration 2017-01-06 18:31:11 +01:00
netbeans netbeans: 8.1 -> 8.2 2016-10-14 21:56:26 -04:00
notepadqq notepadqq: init at 0.53.0 2016-10-02 15:59:01 +02:00
nvi nvi: fix linking with ncurses 2017-01-11 19:21:18 -08:00
nvpy nvpy: use python2 2016-10-18 23:14:34 +02:00
rstudio RStudio: Optionally allow packages from custom R environment 2017-01-27 18:54:50 -05:00
scite treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
sigil treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
sublime treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
sublime3 sublimetext3: 3124 -> 3126 2016-09-24 14:53:42 +01:00
supertux-editor treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
tecoc tecoc: init at 20150606 2016-08-02 22:59:39 -03:00
texmacs
texmaker
texstudio texstudio: 2.11.0 -> 2.11.2 2016-10-31 23:40:18 +02:00
textadept textadept: 8.7 -> 9.0 2016-10-05 15:07:56 +11:00
tiled tiled: 0.16.1 -> 0.17.0 2016-09-30 13:49:08 +10:00
tweak tweak: Broken on Darwin 2016-08-06 17:06:45 +03:00
uemacs
vanubi vanubi: vala -> vala_0_26 2016-08-21 20:02:05 +03:00
vbindiff treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
vim vim: 8.0.0005 -> 8.0.0075 2016-11-11 10:12:18 +01:00
vis vis: 2016-08-24 -> 2016-10-09 2016-10-17 10:35:48 +03:00
vscode vscode: fix .desktop file 2017-01-16 10:03:47 +01:00
wily treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
wxhexeditor
yi
zed
zile zile: 2.4.11 -> 2.4.13 2016-11-13 22:15:44 +01:00