Skip to content

Commit

Permalink
added check for 1 img
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Jan 3, 2020
1 parent d3633a1 commit 73aa183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/image_func.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ stat_img = function(
res_list[[icol]] = x
rm(list = "x");
}
if (num_imgs == 1 && length(res_list) == 1) {
res_list = res_list[[1]]
}
res_img = res_list
rm(list = "res_list");
}
Expand Down

0 comments on commit 73aa183

Please sign in to comment.