I’m making tables using flextable. The object initiation seems to be working fine, but I am not able to view the result in the RStudio viewer pane.
I’m using RStudio version 2024.4.1.748 and flextable version 0.9.6.
Here is a reproducible example:
library(flextable)
library(purrr)
#>
#> Attaching package: 'purrr'
#> The following object is masked from 'package:flextable':
#>
#> compose
my_flextable <- flextable(mtcars)
View(my_flextable)
#> Error in as.data.frame.default(x): cannot coerce class '"flextable"' to a data.frame
Created on 2024-06-03 with reprex v2.1.0