diff --git a/frameworks/runR.sh b/frameworks/runR.sh
index 3f4a207956943d7fd39784b8df54efefd3d37f60..46a1c0431640341a5b207fa4c738797e78862992 100755
--- a/frameworks/runR.sh
+++ b/frameworks/runR.sh
@@ -3,7 +3,15 @@ then
 	echo "Please pass the folder that should be analyzed"
 fi
 
-BASE_DIR=$(pwd)/$1
+if [[ "$1" = /* ]]
+then
+	echo "absolute path"
+	BASE_DIR=$1
+else
+	echo "relative path"
+	BASE_DIR=$(pwd)/$1
+fi
+
 source common-functions.sh
 
 source $1/labels.sh