inject a print(x, ...) function into the annotation environment
Essentially a convenient warning to catch the case when you've left a print statement in your annotations.
print <- function(x, ...){
rlang::warn("Printing in annotations will produce invalid output.")
base::print(x, ...)
}
inject a
print(x, ...)function into the annotation environmentEssentially a convenient warning to catch the case when you've left a print statement in your annotations.