gt function error

Hi, I've been trying to create a table using the gt package. I am using the following article as guidance:

I tried to recreate what the authors did exactly, using the Island data (same as the authors)

islands_tbl <- 
    name = names(islands),
    size = islands
  ) %>%
  dplyr::arrange(desc(size)) %>%
gt_tbl <- gt(data = islands_tbl)

# Show the gt Table

But I get this error:
Error in gt(data = islands_tbl) : unused argument (data = islands_tbl)

Any help is greatly appreciated!

I just tried this on RStudio Cloud and it worked fine. Could you try to create a reprex (including the library call to gt), so we can get a bit more detail?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.