From 3cb2087a9e862031faae10034455200a790993de Mon Sep 17 00:00:00 2001 From: selkamand Date: Wed, 27 Sep 2023 21:47:22 +1000 Subject: [PATCH] fix: fixed error message to display class --- vignettes/create_custom_assertions.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vignettes/create_custom_assertions.Rmd b/vignettes/create_custom_assertions.Rmd index 89a814c..9c623cf 100644 --- a/vignettes/create_custom_assertions.Rmd +++ b/vignettes/create_custom_assertions.Rmd @@ -102,7 +102,7 @@ Here's a recreation of the example above, using a `func` that supplies strings t # Define Function is_a_string <- function(object){ if(!is.character(object)) - return("{arg_name} must be a character, not class({arg_value})") + return("{arg_name} must be a character, not {class(arg_value)}") if(length(object) != 1){ return("{arg_name} must be length 1, not {length(object)}")