Skip to content

Commit

Permalink
fix: fixed error message to display class
Browse files Browse the repository at this point in the history
  • Loading branch information
selkamand committed Sep 27, 2023
1 parent 9d74f63 commit 3cb2087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/create_custom_assertions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
Expand Down

0 comments on commit 3cb2087

Please sign in to comment.