lazar 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca7aaf1156e827f89f6c254c3821a8a10e893ad6
4
- data.tar.gz: abc078b170347527b19949eafa3218c7cf4b16cd
3
+ metadata.gz: 09a9d60f2daadb0a5b12244c3d0d7cd7a64a782f
4
+ data.tar.gz: 42ade18e5037ca03ef587941e43fb9c70502d859
5
5
  SHA512:
6
- metadata.gz: 9e469dbd7a68f336298ba6c549be3ad8858ca53057c74ece789d17d156ad38379147666dcf160fe09c93cbbd641a37253dde10294257c07e35bee0fef4d382a8
7
- data.tar.gz: 84e2ce96b4c8f2f0f451d29343a1aadb9f8f40f92ee5882125678363a38020f0701df08d8842b6f3afd7cabbac27255c6d21a62257c337fb281ab2cfc6c6a468
6
+ metadata.gz: 89585d53406f8371128b12b39a7c789932ad6f4debb899a8048b17cad2a59fcca986b3cb56fccf20b0a7a0b7ac0fabeb27ba735f9782a4798b5a141a421cf3ca
7
+ data.tar.gz: f5e5f1749623ae43d62746ea8631a55acb6cb0c170e97e906b473dcf480a516cfbe5454988cb45989a742687715dc03dea87841fd96a602408f7cf3fd1a3928f
data/README.md CHANGED
@@ -8,7 +8,7 @@ Dependencies
8
8
 
9
9
  lazar depends on a couple of external programs and libraries. On Debian 7 "Wheezy" systems you can install them with
10
10
 
11
- `sudo apt-get install build-essential ruby ruby-dev git cmake swig r-base r-base-dev openjdk-7-jre libgsl0-dev libxml2-dev zlib1g-dev libcairo2-dev`
11
+ `sudo apt-get install build-essential ruby ruby-dev git cmake swig r-base r-base-dev r-cran-rserve openjdk-7-jre libgsl0-dev libxml2-dev zlib1g-dev libcairo2-dev`
12
12
 
13
13
  You will also need at least mongodb version 3.0, but Debian "Wheezy" provides version 2.4. Please follow the instructions at http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/:
14
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
data/ext/lazar/extconf.rb CHANGED
@@ -19,6 +19,9 @@ FileUtils.mkdir_p File.join(main_dir,"bin") # for Rserve binary
19
19
  rinstall = File.expand_path(File.join(File.dirname(__FILE__),"rinstall.R"))
20
20
  puts `Rscript --vanilla #{rinstall} #{r_dir}`
21
21
 
22
+ r_libs = Dir[File.join(r_dir,"*")].collect{|l| l.sub(r_dir, '').sub('/','')}.sort
23
+ abort "Failed to install R packages." unless r_libs == ["caret","doMC","foreach","ggplot2","gridExtra","iterators","pls"].sort
24
+
22
25
  # create a fake Makefile
23
26
  File.open(File.join(File.dirname(__FILE__),"Makefile"),"w+") do |makefile|
24
27
  makefile.puts "all:\n\ttrue\n\ninstall:\n\ttrue\n"
data/ext/lazar/rinstall.R CHANGED
@@ -1,6 +1,8 @@
1
1
  libdir = commandArgs(trailingOnly=TRUE)[1]
2
- #install.packages("Rserve",lib=libdir,configure.args=args)
3
2
  repo = "https://stat.ethz.ch/CRAN/"
3
+ #install.packages("Rserve",lib=libdir,repos=repo,dependencies=TRUE)
4
+ install.packages("iterators",lib=libdir,repos=repo);
5
+ install.packages("foreach",lib=libdir,repos=repo);
4
6
  install.packages("gridExtra",lib=libdir,repos=repo);
5
7
  install.packages("ggplot2",lib=libdir,repos=repo);
6
8
  install.packages("pls",lib=libdir,repos=repo);
data/lib/lazar.rb CHANGED
@@ -48,6 +48,8 @@ NR_CORES = `getconf _NPROCESSORS_ONLN`.to_i
48
48
  R = Rserve::Connection.new
49
49
  R.eval "
50
50
  suppressPackageStartupMessages({
51
+ library(iterators,lib=\"#{rlib}\")
52
+ library(foreach,lib=\"#{rlib}\")
51
53
  library(ggplot2,lib=\"#{rlib}\")
52
54
  library(grid,lib=\"#{rlib}\")
53
55
  library(gridExtra,lib=\"#{rlib}\")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-01 00:00:00.000000000 Z
12
+ date: 2016-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler