diff --git a/gg_empty.R b/gg_empty.R index 0a29c267408b352061a73ce99bc81889e150caa4..5e582a3527a5071d4a6b3842b2a944606f091603 100755 --- a/gg_empty.R +++ b/gg_empty.R @@ -87,10 +87,10 @@ gg_empty <- function( # end arg with no default values # argument checking with arg_check() # argument checking - arg.check <- NULL # + argum.check <- NULL # text.check <- NULL # checked.arg.names <- NULL # for function debbuging: used by r_debugging_tools - ee <- base::expression(arg.check <- base::c(arg.check, tempo$problem) , text.check <- base::c(text.check, tempo$text) , checked.arg.names <- base::c(checked.arg.names, tempo$object.name)) + ee <- base::expression(argum.check <- base::c(argum.check, tempo$problem) , text.check <- base::c(text.check, tempo$text) , checked.arg.names <- base::c(checked.arg.names, tempo$object.name)) if( ! base::is.null(text)){ tempo <- saferDev::arg_check(data = text, class = "vector", mode = "character", length = 1, fun.name = function.name) ; base::eval(ee) } @@ -99,9 +99,9 @@ gg_empty <- function( tempo <- saferDev::arg_check(data = title, class = "vector", mode = "character", length = 1, fun.name = function.name) ; base::eval(ee) } tempo <- saferDev::arg_check(data = title.size, class = "vector", mode = "numeric", length = 1, fun.name = function.name) ; base::eval(ee) - if( ! base::is.null(arg.check)){ - if(base::any(arg.check) == TRUE){ - base::stop(base::paste0("\n\n================\n\n", base::paste(text.check[arg.check], collapse = "\n"), "\n\n================\n\n"), call. = FALSE) # + if( ! base::is.null(argum.check)){ + if(base::any(argum.check) == TRUE){ + base::stop(base::paste0("\n\n================\n\n", base::paste(text.check[argum.check], collapse = "\n"), "\n\n================\n\n"), call. = FALSE) # } } # end argument checking with arg_check()