Skip to content

Commit

Permalink
Merge pull request #98 from selkamand/97-fix-vignette-advanced-assert…
Browse files Browse the repository at this point in the history
…ions-guide

fix: fixed error message to display class
  • Loading branch information
selkamand authored Sep 27, 2023
2 parents 9d74f63 + 3cb2087 commit b8cc4db
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 b8cc4db

Please sign in to comment.