Skip to content

Make sure displaying ggplot objects in a data frame doesn't error #6526

@teunbrand

Description

@teunbrand

per davidgohel/flextable#686 (comment):

library(ggplot2)
z <- iris
z$gg <- list(ggplot())
print(z)
#> Error in format.default(unlist(xx), ...): c("Found no format() method for class \"ggplot2::ggplot\"", "Found no format() method for class \"ggplot\"", "Found no format() method for class \"ggplot2::gg\"", "Found no format() method for class \"S7_object\"", "Found no format() method for class \"gg\"")

Created on 2025-06-20 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions