Display-Lab / bit-stomach

Data ingest and performer annotation
1 stars 1 forks source link

Emit warning when `print()` is called from annotation #53

Open grosscol opened 4 years ago

grosscol commented 4 years ago

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, ...)
}