File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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 ]]
Original file line number Diff line number Diff line change 11
22
33wrapr_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}
You can’t perform that action at this time.
0 commit comments