summary refs log tree commit diff
path: root/pkgs/development/r-modules/test-evaluation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/r-modules/test-evaluation.nix')
-rw-r--r--pkgs/development/r-modules/test-evaluation.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/r-modules/test-evaluation.nix b/pkgs/development/r-modules/test-evaluation.nix
new file mode 100644
index 00000000000..2ca0d42c6db
--- /dev/null
+++ b/pkgs/development/r-modules/test-evaluation.nix
@@ -0,0 +1,21 @@
+# Run
+#
+#   nix-build test-evaluation.nix --dry-run
+#
+# to test whether the R package set evaluates properly.
+
+let
+
+  config = {
+    allowBroken = true;
+    allowUnfree = true;
+  };
+
+  inherit (import ../../.. { inherit config; }) pkgs;
+
+  rWrapper = pkgs.rWrapper.override {
+    packages = pkgs.lib.filter pkgs.lib.isDerivation (pkgs.lib.attrValues pkgs.rPackages);
+  };
+
+in
+  rWrapper