Skip to content

Commit d6ff9f8

Browse files
committed
more ... checking
1 parent 926819b commit d6ff9f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

R/qc.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ qc <- function(..., .wrapr_private_var_env = parent.frame()) {
6464
2:length(.wrapr_private_var_args),
6565
function(.wrapr_private_var_i) {
6666
.wrapr_private_var_ei <- .wrapr_private_var_args[[.wrapr_private_var_i]]
67+
if(missing(.wrapr_private_var_ei)) {
68+
stop("saw missing argument to qc, the cause is often an extra comma in the argument list")
69+
}
6770
.wrapr_private_var_ni <- NULL
6871
if(.wrapr_private_var_i<=length(.wrapr_private_var_names)) {
6972
.wrapr_private_var_ni <- .wrapr_private_var_names[[.wrapr_private_var_i]]

R/utils.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22

33
wrapr_deparse <- function(item) {
4+
if(missing(item)) {
5+
stop("saw missing argument, often this is caused by an extra comma")
6+
}
47
paste(as.character(deparse(item, width.cutoff = 500L)),
58
collapse = "\n ")
69
}

0 commit comments

Comments
 (0)