'Quarto file not producing data table

I am very new to Quarto and I am trying to create an markdown document using it. Everything works well except I am not able to render tables on the output HMTL file. The following is my code. The HTML document shows ':: {.cell-output-display}' where the table is supposed to be rendered. I would really appreciate it if you could help me out with this.

process_results <- function(value){
    results <- topTable(fit2, coef=value,n=Inf,sort.by = 'p') 
    top_results <- head(results, n = 10) %>%
    kable(caption = value) %>%     ### This works on traditional mardown. 
    kable_styling()
    ...........
    ..............
}    
 


 process_results('GroupB_vs_GroupA')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source