How to download all genes inside all gene sets in C6 (oncogenic signature gene sets, 189 gene sets) in Molecular signature database (Msigdb) I want to download the all genes inside 189 gene sets in R in a data frame?

Thanks in advance
```r
library(msigdbr)

genesets = msigdbr(species = "Homo sapiens", category = "C6",subcategory = NULL)
View(genesets)

unique_genes <- genesets%>% distinct(gene_symbol)
View(unique_genes)
```