Skip to content
Snippets Groups Projects
Commit b53c9307 authored by hwang's avatar hwang
Browse files

complete the addition of packages before functions

parent 4cc9e95e
No related branches found
No related tags found
1 merge request!4Master
...@@ -87,10 +87,10 @@ gg_empty <- function( ...@@ -87,10 +87,10 @@ gg_empty <- function(
# end arg with no default values # end arg with no default values
# argument checking with arg_check() # argument checking with arg_check()
# argument checking # argument checking
arg.check <- NULL # argum.check <- NULL #
text.check <- NULL # text.check <- NULL #
checked.arg.names <- NULL # for function debbuging: used by r_debugging_tools 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)){ if( ! base::is.null(text)){
tempo <- saferDev::arg_check(data = text, class = "vector", mode = "character", length = 1, fun.name = function.name) ; base::eval(ee) 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( ...@@ -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, 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) 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::is.null(argum.check)){
if(base::any(arg.check) == TRUE){ if(base::any(argum.check) == TRUE){
base::stop(base::paste0("\n\n================\n\n", base::paste(text.check[arg.check], collapse = "\n"), "\n\n================\n\n"), call. = FALSE) # 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() # end argument checking with arg_check()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment