Skip to content

Commit

Permalink
type convert error for non-function
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Dec 18, 2024
1 parent be8b1d7 commit ef9d396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/var_args_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ var_args_list <- structure(function
function(x)utils::type.convert(x,as.is=TRUE)
}else if(isFALSE(type.convert)){
identity
}else type.convert
}else if(is.function(type.convert)){
type.convert
}else stop("type.convert should be either TRUE or FALSE or a function")
names(fun.list)[[group.i]] <- pattern.name
has.name <- TRUE
"("
Expand Down

0 comments on commit ef9d396

Please sign in to comment.