From e77b51ed0b6523cada6d4b25f8a4257924473067 Mon Sep 17 00:00:00 2001
From: Holger Brandl <brandl@mpi-cbg.de>
Date: Mon, 10 Nov 2014 11:48:53 +0100
Subject: [PATCH] continued eric table export

---
 R/utils/spinr.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/R/utils/spinr.sh b/R/utils/spinr.sh
index 9ca69f6..2afd0fc 100644
--- a/R/utils/spinr.sh
+++ b/R/utils/spinr.sh
@@ -27,13 +27,14 @@ spinsnip(){
     fi
 
     reportName=$1
-    tmpR=$reportName.R
-
-    echo "processing $tmpR..."
+    tmpR=$(tr " " "_" $reportName).R
 
     ## http://stackoverflow.com/questions/11454343/pipe-output-to-bash-function
     cat | sed 's/#>/#'"'"'/g'  > $tmpR
 
+    echo "spining $tmpR..."
+
+
     spinr $tmpR
     rm $tmpR
 }
-- 
GitLab