You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Works correctly
df = data.frame(url = 'http://foo.bar')
class(df$url) = 'hyperlink'
wb_workbook() |>
wb_add_worksheet() |>
wb_add_data(x = df)
# Same thing, but now the dataframe's wrapped in a `tibble`
tbl = tibble::tibble(url = 'http://foo.bar')
class(tbl$url) = 'hyperlink'
wb_workbook() |>
wb_add_worksheet() |>
wb_add_data(x = tbl)
# Error in `[<-`:
# ! `*vtmp*` must be a vector, a bare list, a data frame, a matrix, or NULL.
The text was updated successfully, but these errors were encountered:
In a future version, this spaghetti code should be replaced by something more stable. The conversion to a data frame should be done as soon as possible, and this additional conversion should not be necessary at all.
openxlsx2 version 1.3
The text was updated successfully, but these errors were encountered: