gt function error

Hi, I've been trying to create a table using the gt package. I am using the following article as guidance: https://gt.rstudio.com/articles/intro-creating-gt-tables.html

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

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

# Show the gt Table
gt_tbl

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.