we have arg_name to access deparse(substitute(x)) - called from within the assertion,
but how can we get the relevant 'name' of arg2 such that if a user calls assert_test(1:5, 10:12) the error message says
'1:5 is our first argument, 10:12 is our second'
# Create an assertion-powering function
test_advanced <- function(x, arg2){
return("{arg_name} is our first argument. {name(arg2)} is our second.")
}
assert_test <- assert_create(
test_advanced
)