Skip to content

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

Open
@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

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions