diff --git a/R/ggplot_commons.R b/R/ggplot_commons.R index eb94664ddd3ab2547f3d055d6f7dd5cf9d0796f4..4b50907f7966a18199ca74d2749eb2fe6d8a3aa6 100644 --- a/R/ggplot_commons.R +++ b/R/ggplot_commons.R @@ -1,6 +1,6 @@ require.auto(ggplot2) require.auto(scales) - +require(grid) @@ -9,7 +9,6 @@ scale_fill_redgreed <- function() scale_fill_manual(values = c("red","darkgreen" rotXlab <- function() theme(axis.text.x = element_text(angle = 90, hjust = 1)) - require(grid) # Multiple plot function diff --git a/R/utils/spinr.R b/R/utils/spinr.R index 3087cf3af448ac188124d745b0f29187c622dd21..036616660a36ba1dc3133f35047658d2e4345c77 100644 --- a/R/utils/spinr.R +++ b/R/utils/spinr.R @@ -1,5 +1,6 @@ ## a thin wrapper around spin to make it more useful with more custom output +require(plyr) require(knitr) require(stringr) diff --git a/R/utils/spinr.sh b/R/utils/spinr.sh index 1daa194625eb7b1b4c4a631068a3aae1a3ee262a..6db0af9b2d411992a907b5554b84a11d811d4d75 100644 --- a/R/utils/spinr.sh +++ b/R/utils/spinr.sh @@ -1,8 +1,8 @@ spinr(){ - if [ $# -ne 1 ]; then - echo -e "Usage: spinr <script.R>\nJust knit R documents as they are, no markdown is required (but supported to some extent)" + if [ $# -lt 1 ]; then + echo -e "Usage: spinr <script.R> [<other args>*]\nJust knit R documents as they are, no markdown is required (but supported to some extent)" return fi