Skip to content

Commit

Permalink
moved function after args processing
Browse files Browse the repository at this point in the history
Error in args$outdir : object of type 'closure' is not subsettable
  • Loading branch information
aliceminotto authored Nov 4, 2016
1 parent be7d4e7 commit fda9eb3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions GWASSER.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,12 @@ processArgs <- function(){
return(arguments)
}

if(!interactive()){
if(!dir.exists(args$outdir)){
if(!interactive()) {
args <- processArgs()
if(!dir.exists(args$outdir)){
message("Output directory is missing, creating directory...")
dir.create(args$outdir, recursive = TRUE)
}
}

if(!interactive()) {
args <- processArgs()
if (!args$noplots) {
if (is.null(args$map)) {
message("\n--mFile required to plot\n")
Expand Down

0 comments on commit fda9eb3

Please sign in to comment.