Skip to content

Commit

Permalink
Update R/verify.R
Browse files Browse the repository at this point in the history
Co-authored-by: André Veríssimo <[email protected]>
Signed-off-by: Marcin <[email protected]>
  • Loading branch information
m7pr and averissimo authored Nov 21, 2023
1 parent 93a2109 commit a9ffe97
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/verify.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ setMethod("verify", "teal_data", definition = function(x) {
names_diff_other <- setdiff(names(new_teal_data@env), names(x@env))

error <- c(
"\nCode verification failed at object(s):\n",
paste(c(names_diff, names(which(!objects_diff))), collapse = "\n")
"Code verification failed at object(s):",
paste0(" \u2022 ", c(names_diff, names(which(!objects_diff))))
)

if (length(names_diff_other)) {
error <- c(
error,
"\nObject(s) created with code that do not exist in teal_data:\n",
paste(names_diff_other, collapse = "\n")
"Object(s) created with code that do not exist in teal_data:",
paste0(" \u2022 ", names_diff_other)
)
}

Expand Down

0 comments on commit a9ffe97

Please sign in to comment.