Skip to content

Commit

Permalink
version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwan Hassani authored and gaborcsardi committed Oct 12, 2015
1 parent abd2378 commit 2e2cbab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
@@ -1,9 +1,9 @@
Package: subspace
Title: Interface to OpenSubspace
Version: 1.0.3
Version: 1.0.4
Date: 2015-09-30
Authors@R: c( person("Marwan","Hassani",role=c("aut","cre"),email="rsubspace@cs.rwth-aachen.de"),
person("Matthias","Hansen",role=c("aut"),email="matthias.hansen@rwth-aachen.de"),
person("Matthias","Hansen",role=c("aut")),
person("Emmanuel","Müller",role="ctb"),
person("Ira","Assent",role="ctb"),
person("Stephan","Günnemann",role="ctb"),
Expand All @@ -21,7 +21,7 @@ SystemRequirements: Java (>= 6)
Encoding: UTF-8
License: GPL-2
NeedsCompilation: no
Packaged: 2015-10-03 10:40:29 UTC; mth
Packaged: 2015-10-12 13:16:59 UTC; mth
Author: Marwan Hassani [aut, cre],
Matthias Hansen [aut],
Emmanuel Müller [ctb],
Expand All @@ -32,4 +32,4 @@ Author: Marwan Hassani [aut, cre],
University of Waikato [ctb, cph]
Maintainer: Marwan Hassani <rsubspace@cs.rwth-aachen.de>
Repository: CRAN
Date/Publication: 2015-10-03 14:49:23
Date/Publication: 2015-10-12 17:03:17
4 changes: 2 additions & 2 deletions MD5
@@ -1,11 +1,11 @@
5207617c0ec871a4291fd45fc1fcca80 *DESCRIPTION
9f77ea8a63db02c84efaa25c59cc194d *DESCRIPTION
b19106de9afa7e0d8dcfd771177efa90 *NAMESPACE
7f0efc54d6993f5efced1b03982f24fa *R/clique.R
620a0339c528a0cf1f7e85fa8f8664ff *R/dataset_doc.R
31d7a0b6fceeff1ce8cf96bc9476ee82 *R/file_io.R
8629919fe784171d2634ea6ca52d2be9 *R/fires.R
e9384f50d5d0676257e8154c5d404013 *R/java_object_from_data.R
25c61b36038e558215e9ba56b53ec73a *R/onLoad.R
2d06735d302585e1f8476f9dbb7af354 *R/onLoad.R
60160631a40efd61ae42ac0de246b24f *R/p3c.R
ee35ee68480ba5df0653e89cab34f0a8 *R/package_doc.R
4d200671d3db6169eeedbd59188f2b70 *R/plot.R
Expand Down
16 changes: 16 additions & 0 deletions R/onLoad.R
@@ -1,3 +1,19 @@
.onLoad <- function(libname,pkgname) {
#Load the jar files that this package uses.
rJava::.jpackage(name=pkgname,lib.loc=libname)

# Problem: loading the Weka jars creates a new directory called wekafiles in
# the user's home directory. This is bad because nothing meaningful (for this
# package) is saved in that directory and creating useless directories is Bad
# Behavior and also against the policies of CRAN.
# Workaround: (proposed by Kurt Hornik)
# If the directory given by
# WEKA_HOME (or its default $HOME/wekafiles) was not created yet, make sure it
# gets created in tempdir().
if(is.na(isdir <-
file.info(Sys.getenv("WEKA_HOME",
file.path(path.expand("~"),
"wekafiles")))$isdir) ||
!isdir)
Sys.setenv(WEKA_HOME = tempfile("subspace"))
}

0 comments on commit 2e2cbab

Please sign in to comment.