gt package - Easiest way to Bold the headers

I'm working with COVID-19 data and trying the gt package to format my tables. So far I'm very happy with how modular it is.

I haven't been able to figure out how to make the column headers Bold without naming all the columns.
I'm trying to avoid this

    style = list(
      cell_text(weight = "bold")
    locations = cells_column_labels(columns = vars(rank, state, county, 
                                                   population, ttl_cases, 

I tried these options and they all errored out

locations = cells_column_labels(all_of(.))
locations = cells_column_labels()
locations = cells_column_labels(.)
locations = cells_column_labels(names(df)

Thanks for the help.

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