Skip to content

Commit

Permalink
alignement
Browse files Browse the repository at this point in the history
close #6
  • Loading branch information
VincentGuyader committed Jun 24, 2017
1 parent 9bd0ac2 commit b3c751f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/nice.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dd <- function(x,l=60) {
if (nchar(x) <= (l-10)) { # ptet pas -4 ici
base <- (l - nchar(x) - 2)/2
return(paste(c("####", rep(" ", floor(base)-6), x, rep(" ",
ceiling(base)), "####"), collapse = ""))
return(paste(c("####", rep(" ", floor(base)-3), x, rep(" ",
ceiling(base)-3), "####"), collapse = ""))
}

s1 <- strsplit(x, "\\s")[[1]]
Expand Down

0 comments on commit b3c751f

Please sign in to comment.