Skip to content
Snippets Groups Projects
Commit 2c82ed9b authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix code warnings

parent 67e9c74a
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ import nl.lumc.sasc.biopet.utils.config.Configurable
import scala.sys.process.{ Process, ProcessLogger }
/**
* Trait for rscripts, can be used to execute rscripts locally
*
* Created by pjvanthof on 13/09/15.
*/
trait Rscript extends Configurable {
......@@ -42,12 +44,11 @@ trait Rscript extends Configurable {
script = script.getAbsoluteFile
} else {
val rScript: File = dir match {
case Some(dir) => new File(dir, script.getName)
case _ => {
case Some(d) => new File(d, script.getName)
case _ =>
val file = File.createTempFile(script.getName, ".R")
file.deleteOnExit()
file
}
}
if (!rScript.getAbsoluteFile.getParentFile.exists) rScript.getParentFile.mkdirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment