Skip to content

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

@grosscol

Description

@grosscol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions