test auto-indenter
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 14 Apr 2017 15:37:43 +0000 (17:37 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 14 Apr 2017 15:37:43 +0000 (17:37 +0200)
hooks/pre-commit
pkg/R/constructionModelesLassoRank.R

index f9649b3..bf5d735 100755 (executable)
@@ -15,7 +15,7 @@ indent() {
        fi
 
        # loop on modified files
        fi
 
        # loop on modified files
-       git diff --cached --name-only $against |while read file;
+       git diff --cached --name-only $against | while read file;
        do
                local ext=$(expr "$file" : ".*\(\..*\)")
                case $ext in
        do
                local ext=$(expr "$file" : ".*\(\..*\)")
                case $ext in
@@ -28,10 +28,6 @@ indent() {
 
 # Indent the file with `indent' if this is a R file
 __indent_R() {
 
 # Indent the file with `indent' if this is a R file
 __indent_R() {
-       if test ! -x "$INDENT"
-       then
-               return;
-       fi
        if test ! -f $file
        then
                return;
        if test ! -f $file
        then
                return;
index dc6bcc1..5c742d1 100644 (file)
@@ -1,7 +1,7 @@
 #' constructionModelesLassoRank
 #'
 #' Construct a collection of models with the Lasso-Rank procedure.
 #' constructionModelesLassoRank
 #'
 #' Construct a collection of models with the Lasso-Rank procedure.
-#' 
+#'
 #' @param S output of selectVariables.R
 #' @param k number of components
 #' @param mini integer, minimum number of iterations in the EM algorithm, by default = 10
 #' @param S output of selectVariables.R
 #' @param k number of components
 #' @param mini integer, minimum number of iterations in the EM algorithm, by default = 10